X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fdatabase.c;h=2edbee456d4e3a933a51b8c4e5104760cfb13740;hb=c3bde7aa922d40e5c7a77d4b0bb3bbb86448360c;hp=33a8615b7963e555b30b8e7866308835dc57dd7e;hpb=0298dde5c47a900f2542bc7ec6c9dafc92ce3015;p=chise%2Fxemacs-chise.git.1 diff --git a/src/database.c b/src/database.c index 33a8615..2edbee4 100644 --- a/src/database.c +++ b/src/database.c @@ -43,9 +43,10 @@ Boston, MA 02111-1307, USA. */ /* glibc 2.1 doesn't have this problem with DB 2.x */ #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) #ifdef HAVE_INTTYPES_H +#ifndef __BIT_TYPES_DEFINED__ #define __BIT_TYPES_DEFINED__ +#endif #include -#ifndef __FreeBSD__ #if !HAVE_U_INT8_T typedef uint8_t u_int8_t; #endif @@ -60,7 +61,6 @@ typedef uint32_t u_int32_t; typedef uint64_t u_int64_t; #endif #endif /* WE_DONT_NEED_QUADS */ -#endif /* !defined(__FreeBSD__) */ #endif /* HAVE_INTTYPES_H */ #endif /* !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) */ /* Berkeley DB wants __STDC__ to be defined; else if does `#define const' */ @@ -792,7 +792,7 @@ If there is no corresponding value, return DEFAULT (defaults to nil). } } -DEFUN ("map-database", Fmapdatabase, 2, 2, 0, /* +DEFUN ("map-database", Fmap_database, 2, 2, 0, /* Map FUNCTION over entries in DATABASE, calling it with two args, each key and value in the database. */ @@ -827,7 +827,7 @@ syms_of_database (void) DEFSUBR (Fopen_database); DEFSUBR (Fdatabasep); - DEFSUBR (Fmapdatabase); + DEFSUBR (Fmap_database); DEFSUBR (Fput_database); DEFSUBR (Fget_database); DEFSUBR (Fremove_database);