Module Name:    src
Committed By:   martin
Date:           Fri Mar  4 19:05:40 UTC 2016

Modified Files:
        src/external/bsd/ntp/dist/sntp/libevent/include/event2 [netbsd-6-1]:
            event-config.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.1.4.2 -r1.1.4.3 \
    src/external/bsd/ntp/dist/sntp/libevent/include/event2/event-config.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/ntp/dist/sntp/libevent/include/event2/event-config.h
diff -u src/external/bsd/ntp/dist/sntp/libevent/include/event2/event-config.h:1.1.4.2 src/external/bsd/ntp/dist/sntp/libevent/include/event2/event-config.h:1.1.4.3
--- src/external/bsd/ntp/dist/sntp/libevent/include/event2/event-config.h:1.1.4.2	Sat Nov  7 22:49:40 2015
+++ src/external/bsd/ntp/dist/sntp/libevent/include/event2/event-config.h	Fri Mar  4 19:05:40 2016
@@ -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

Reply via email to