diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-04-06 08:17:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-04-06 08:17:12 +0000 |
commit | 08c24f11bf22ee490e530e2ff53a4beb6f34e8e5 (patch) | |
tree | 216213b77d3c837b2b94d9ecee9e5541a23c6cb6 | |
parent | ff0bde35c789ef8ada1c6aa6235c58b05886ed40 (diff) | |
download | gnunet-08c24f11bf22ee490e530e2ff53a4beb6f34e8e5.tar.gz gnunet-08c24f11bf22ee490e530e2ff53a4beb6f34e8e5.zip |
need endian macros
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/include/platform.h | 7 |
2 files changed, 8 insertions, 1 deletions
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 | |||
320 | 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])) | 320 | 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])) |
321 | 321 | ||
322 | # Checks for headers that are only required on some systems or opional (and where we do NOT abort if they are not there) | 322 | # Checks for headers that are only required on some systems or opional (and where we do NOT abort if they are not there) |
323 | 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]) | 323 | 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]) |
324 | 324 | ||
325 | SAVE_LDFLAGS=$LDFLAGS | 325 | SAVE_LDFLAGS=$LDFLAGS |
326 | SAVE_CPPFLAGS=$CPPFLAGS | 326 | 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 @@ | |||
180 | #include <sys/resource.h> | 180 | #include <sys/resource.h> |
181 | #endif | 181 | #endif |
182 | 182 | ||
183 | #if HAVE_ENDIAN_H | ||
184 | #include <endian.h> | ||
185 | #endif | ||
186 | #if HAVE_SYS_ENDIAN_H | ||
187 | #include <sys/endian.h> | ||
188 | #endif | ||
189 | |||
183 | #include "plibc.h" | 190 | #include "plibc.h" |
184 | 191 | ||
185 | #include <locale.h> | 192 | #include <locale.h> |