Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/libevent/include/event2 fix non _LP64



details:   https://anonhg.NetBSD.org/src/rev/af78a749376b
branches:  trunk
changeset: 821299:af78a749376b
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Feb 01 01:15:34 2017 +0000

description:
fix non _LP64

diffstat:

 external/bsd/libevent/include/event2/event-config.h |  18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diffs (50 lines):

diff -r 63e63b1f0ec2 -r af78a749376b external/bsd/libevent/include/event2/event-config.h
--- a/external/bsd/libevent/include/event2/event-config.h       Wed Feb 01 00:47:56 2017 +0000
+++ b/external/bsd/libevent/include/event2/event-config.h       Wed Feb 01 01:15:34 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: event-config.h,v 1.3 2017/01/31 23:17:40 christos Exp $        */
+/*     $NetBSD: event-config.h,v 1.4 2017/02/01 01:15:34 christos Exp $        */
 /* event2/event-config.h
  *
  * This file was generated by autoconf when libevent was built, and post-
@@ -447,7 +447,11 @@
 #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
@@ -456,16 +460,28 @@
 #define EVENT__SIZEOF_OFF_T 8
 
 /* The size of `pthread_t', as computed by sizeof. */
+#ifdef _LP64
 #define EVENT__SIZEOF_PTHREAD_T 8
+#else
+#define EVENT__SIZEOF_PTHREAD_T 4
+#endif
 
 /* The size of `short', as computed by sizeof. */
 #define EVENT__SIZEOF_SHORT 2
 
 /* The size of `size_t', as computed by sizeof. */
+#ifdef _LP64
 #define EVENT__SIZEOF_SIZE_T 8
+#else
+#define EVENT__SIZEOF_SIZE_T 4
+#endif
 
 /* The size of `void *', as computed by sizeof. */
+#ifdef _LP64
 #define EVENT__SIZEOF_VOID_P 8
+#else
+#define EVENT__SIZEOF_VOID_P 4
+#endif
 
 /* Define to 1 if you have the ANSI C header files. */
 #define EVENT__STDC_HEADERS 1



Home | Main Index | Thread Index | Old Index