comparison src/database.c @ 1453:908cd1ff6104

[xemacs-hg @ 2003-05-04 00:02:45 by youngs] 2003-05-04 Robert Pluim <rpluim@bigfoot.com> * database.c: Don't use the u_int8_t etc typedefs on FreeBSD, they conflict with <sys/types.h>.
author youngs
date Sun, 04 May 2003 00:02:48 +0000
parents 19738a2a5138
children df0effd42264
comparison
equal deleted inserted replaced
1452:dd63b61df78c 1453:908cd1ff6104
45 /* glibc 2.1 doesn't have this problem with DB 2.x */ 45 /* glibc 2.1 doesn't have this problem with DB 2.x */
46 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) 46 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
47 #ifdef HAVE_INTTYPES_H 47 #ifdef HAVE_INTTYPES_H
48 #define __BIT_TYPES_DEFINED__ 48 #define __BIT_TYPES_DEFINED__
49 #include <inttypes.h> 49 #include <inttypes.h>
50 #ifndef __FreeBSD__
50 typedef uint8_t u_int8_t; 51 typedef uint8_t u_int8_t;
51 typedef uint16_t u_int16_t; 52 typedef uint16_t u_int16_t;
52 typedef uint32_t u_int32_t; 53 typedef uint32_t u_int32_t;
53 #ifdef WE_DONT_NEED_QUADS 54 #ifdef WE_DONT_NEED_QUADS
54 typedef uint64_t u_int64_t; 55 typedef uint64_t u_int64_t;
55 #endif /* WE_DONT_NEED_QUADS */ 56 #endif /* WE_DONT_NEED_QUADS */
57 #endif /* __FreeBSD__ */
56 #endif /* HAVE_INTTYPES_H */ 58 #endif /* HAVE_INTTYPES_H */
57 #endif /* !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) */ 59 #endif /* !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) */
58 #include DB_H_FILE /* Berkeley db's header file */ 60 #include DB_H_FILE /* Berkeley db's header file */
59 #ifndef DB_VERSION_MAJOR 61 #ifndef DB_VERSION_MAJOR
60 # define DB_VERSION_MAJOR 1 62 # define DB_VERSION_MAJOR 1