From: Christian Grothoff Date: Wed, 6 Apr 2011 08:17:12 +0000 (+0000) Subject: need endian macros X-Git-Tag: initial-import-from-subversion-38251~18773 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=08c24f11bf22ee490e530e2ff53a4beb6f34e8e5;p=oweals%2Fgnunet.git need endian macros --- diff --git a/configure.ac b/configure.ac index 26c3c62b4..16bf23b7e 100644 --- a/configure.ac +++ b/configure.ac @@ -320,7 +320,7 @@ AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h math.h errno.h ctype.h limits.h stdio.h stdlib.h string.h unistd.h stdarg.h signal.h locale.h sys/stat.h sys/types.h],,AC_MSG_ERROR([Compiling GNUnet requires standard UNIX headers files])) # 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([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 netinet/in_systm.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]) +AC_CHECK_HEADERS([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 netinet/in_systm.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 endian.h sys/endian.h]) SAVE_LDFLAGS=$LDFLAGS SAVE_CPPFLAGS=$CPPFLAGS diff --git a/src/include/platform.h b/src/include/platform.h index 230031307..188c76e2d 100644 --- a/src/include/platform.h +++ b/src/include/platform.h @@ -180,6 +180,13 @@ #include #endif +#if HAVE_ENDIAN_H +#include +#endif +#if HAVE_SYS_ENDIAN_H +#include +#endif + #include "plibc.h" #include