Vin Shelton writes:
APPLY COMMIT
This patch will appear in 21.4.13.
Thanks,
Vin
Robert Pluim <rpluim(a)bigfoot.com> writes:
> This is with XEmacs-21.4, 21.5 has the same problem. I know nothing
> about autoconf, let me know if there's a better way to fix this (by
> testing __FreeBSD__ in the C code snippet, perhaps?).
Vin, my apologies, I forgot to submit the corresponding patch to
database.c. Here it is:
2003-03-03 Robert Pluim <rpluim(a)bigfoot.com>
* database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
they conflict with <sys/types.h>.
Index: database.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/database.c,v
retrieving revision 1.16.2.2
diff -u -r1.16.2.2 database.c
--- database.c 2003/02/24 03:25:24 1.16.2.2
+++ database.c 2003/03/03 09:07:51
@@ -45,11 +45,13 @@
#ifdef HAVE_INTTYPES_H
#define __BIT_TYPES_DEFINED__
#include <inttypes.h>
+#ifndef __FreeBSD__
typedef uint8_t u_int8_t;
typedef uint16_t u_int16_t;
typedef uint32_t u_int32_t;
#ifdef WE_DONT_NEED_QUADS
typedef uint64_t u_int64_t;
+#endif
#endif /* WE_DONT_NEED_QUADS */
#endif /* HAVE_INTTYPES_H */
#endif /* !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) */
--