From 4b4427e26a82c2d4d1c21ab58d37b54666728f33 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 16 Jun 2015 13:27:03 +0000 Subject: #include byteswap, if detected by configure --- configure.ac | 2 +- src/include/gnunet_common.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 # Checks for headers that are only required on some systems or opional (and where we do NOT abort if they are not there) -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]) +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]) # FreeBSD requires something more funky for netinet/in_systm.h and netinet/ip.h... 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 @@ #include #endif +#ifdef HAVE_BYTESWAP_H +#include +#endif + #ifdef __cplusplus extern "C" { -- cgit v1.2.3