aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--src/include/platform.h7
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
320AC_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])) 320AC_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)
323AC_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]) 323AC_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
325SAVE_LDFLAGS=$LDFLAGS 325SAVE_LDFLAGS=$LDFLAGS
326SAVE_CPPFLAGS=$CPPFLAGS 326SAVE_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>