Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6-0]: src/external/bsd/ntp/dist/sntp/libevent/include/event2 Hack...



details:   https://anonhg.NetBSD.org/src/rev/b062343cea25
branches:  netbsd-6-0
changeset: 775112:b062343cea25
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Mar 04 19:08:31 2016 +0000

description:
Hack to adjust config automatically to 32bit and 64bit systems.
Requested by christos in #1371.

diffstat:

 external/bsd/ntp/dist/sntp/libevent/include/event2/event-config.h |  14 ++++++---
 1 files changed, 9 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r 7f10e5f2406b -r b062343cea25 external/bsd/ntp/dist/sntp/libevent/include/event2/event-config.h
--- a/external/bsd/ntp/dist/sntp/libevent/include/event2/event-config.h Fri Jan 08 21:24:58 2016 +0000
+++ b/external/bsd/ntp/dist/sntp/libevent/include/event2/event-config.h Fri Mar 04 19:08:31 2016 +0000
@@ -438,25 +438,29 @@
 #define EVENT__SIZEOF_INT 4
 
 /* The size of `long', as computed by sizeof. */
+#ifdef _LP64
 #define EVENT__SIZEOF_LONG 8
+#else
+#define EVENT__SIZEOF_LONG 4
+#endif
 
 /* The size of `long long', as computed by sizeof. */
-#define EVENT__SIZEOF_LONG_LONG 8
+#define EVENT__SIZEOF_LONG_LONG EVENT__SIZEOF_LONG
 
 /* The size of `off_t', as computed by sizeof. */
-#define EVENT__SIZEOF_OFF_T 8
+#define EVENT__SIZEOF_OFF_T EVENT__SIZEOF_LONG
 
 /* The size of `pthread_t', as computed by sizeof. */
-#define EVENT__SIZEOF_PTHREAD_T 8
+#define EVENT__SIZEOF_PTHREAD_T EVENT__SIZEOF_LONG
 
 /* The size of `short', as computed by sizeof. */
 #define EVENT__SIZEOF_SHORT 2
 
 /* The size of `size_t', as computed by sizeof. */
-#define EVENT__SIZEOF_SIZE_T 8
+#define EVENT__SIZEOF_SIZE_T EVENT__SIZEOF_LONG
 
 /* The size of `void *', as computed by sizeof. */
-#define EVENT__SIZEOF_VOID_P 8
+#define EVENT__SIZEOF_VOID_P EVENT__SIZEOF_LONG
 
 /* Define to 1 if you have the ANSI C header files. */
 #define EVENT__STDC_HEADERS 1



Home | Main Index | Thread Index | Old Index