diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-06-16 13:27:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-06-16 13:27:03 +0000 |
commit | 4b4427e26a82c2d4d1c21ab58d37b54666728f33 (patch) | |
tree | fb3df2defaeadfe17b192303770fde2fea11a932 | |
parent | f7f68f4f3fec39f1e2c159d67a31b29ba503c774 (diff) | |
download | gnunet-4b4427e26a82c2d4d1c21ab58d37b54666728f33.tar.gz gnunet-4b4427e26a82c2d4d1c21ab58d37b54666728f33.zip |
#include byteswap, if detected by configure
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/include/gnunet_common.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 4972e0f49..8473f8830 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -706,7 +706,7 @@ AC_CHECK_HEADERS([fcntl.h math.h errno.h ctype.h limits.h stdio.h stdlib.h strin | |||
706 | 706 | ||
707 | 707 | ||
708 | # Checks for headers that are only required on some systems or opional (and where we do NOT abort if they are not there) | 708 | # Checks for headers that are only required on some systems or opional (and where we do NOT abort if they are not there) |
709 | AC_CHECK_HEADERS([malloc.h malloc/malloc.h malloc/malloc_np.h langinfo.h sys/param.h sys/mount.h sys/statvfs.h sys/select.h sockLib.h sys/mman.h sys/msg.h sys/vfs.h arpa/inet.h fcntl.h libintl.h netdb.h netinet/in.h sys/ioctl.h sys/socket.h sys/time.h unistd.h kstat.h sys/sysinfo.h kvm.h sys/file.h sys/resource.h ifaddrs.h mach/mach.h stddef.h sys/timeb.h terminos.h argz.h ucred.h sys/ucred.h endian.h sys/endian.h execinfo.h]) | 709 | AC_CHECK_HEADERS([malloc.h malloc/malloc.h malloc/malloc_np.h langinfo.h sys/param.h sys/mount.h sys/statvfs.h sys/select.h sockLib.h sys/mman.h sys/msg.h sys/vfs.h arpa/inet.h fcntl.h libintl.h netdb.h netinet/in.h sys/ioctl.h sys/socket.h sys/time.h unistd.h kstat.h sys/sysinfo.h kvm.h sys/file.h sys/resource.h ifaddrs.h mach/mach.h stddef.h sys/timeb.h terminos.h argz.h ucred.h sys/ucred.h endian.h sys/endian.h execinfo.h byteswap.h]) |
710 | 710 | ||
711 | # FreeBSD requires something more funky for netinet/in_systm.h and netinet/ip.h... | 711 | # FreeBSD requires something more funky for netinet/in_systm.h and netinet/ip.h... |
712 | AC_CHECK_HEADERS([sys/types.h netinet/in_systm.h netinet/in.h netinet/ip.h],,, | 712 | AC_CHECK_HEADERS([sys/types.h netinet/in_systm.h netinet/in.h netinet/ip.h],,, |
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index 17c97c514..cd75cc3bd 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h | |||
@@ -49,6 +49,10 @@ | |||
49 | #include <stdarg.h> | 49 | #include <stdarg.h> |
50 | #endif | 50 | #endif |
51 | 51 | ||
52 | #ifdef HAVE_BYTESWAP_H | ||
53 | #include <byteswap.h> | ||
54 | #endif | ||
55 | |||
52 | #ifdef __cplusplus | 56 | #ifdef __cplusplus |
53 | extern "C" | 57 | extern "C" |
54 | { | 58 | { |