Include arpa/inet.h for those OSs that have endian details elsewhere.

This commit is contained in:
Con Kolivas 2011-03-22 21:47:24 +11:00
parent 4bc8faa526
commit 70e7866271
6 changed files with 17 additions and 1 deletions

View file

@ -68,7 +68,7 @@ fi
AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h sys/mman.h) AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h sys/mman.h)
AC_CHECK_HEADERS(ctype.h errno.h sys/resource.h) AC_CHECK_HEADERS(ctype.h errno.h sys/resource.h)
AC_CHECK_HEADERS(endian.h sys/endian.h) AC_CHECK_HEADERS(endian.h sys/endian.h arpa/inet.h)
AC_TYPE_OFF_T AC_TYPE_OFF_T
AC_TYPE_SIZE_T AC_TYPE_SIZE_T

View file

@ -42,6 +42,9 @@
#elif HAVE_SYS_ENDIAN_H #elif HAVE_SYS_ENDIAN_H
# include <sys/endian.h> # include <sys/endian.h>
#endif #endif
#ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif
#include "md5.h" #include "md5.h"
#include "rzip.h" #include "rzip.h"

3
main.c
View file

@ -42,6 +42,9 @@
#elif HAVE_SYS_ENDIAN_H #elif HAVE_SYS_ENDIAN_H
# include <sys/endian.h> # include <sys/endian.h>
#endif #endif
#ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif
#include "rzip.h" #include "rzip.h"
#include "lrzip.h" #include "lrzip.h"

View file

@ -36,6 +36,9 @@
#elif HAVE_SYS_ENDIAN_H #elif HAVE_SYS_ENDIAN_H
# include <sys/endian.h> # include <sys/endian.h>
#endif #endif
#ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif
#include "md5.h" #include "md5.h"
#include "runzip.h" #include "runzip.h"

3
rzip.c
View file

@ -47,6 +47,9 @@
#elif HAVE_SYS_ENDIAN_H #elif HAVE_SYS_ENDIAN_H
# include <sys/endian.h> # include <sys/endian.h>
#endif #endif
#ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif
#include "md5.h" #include "md5.h"
#include "stream.h" #include "stream.h"

View file

@ -44,6 +44,10 @@
#elif HAVE_SYS_ENDIAN_H #elif HAVE_SYS_ENDIAN_H
# include <sys/endian.h> # include <sys/endian.h>
#endif #endif
#ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif
/* LZMA C Wrapper */ /* LZMA C Wrapper */
#include "lzma/C/LzmaLib.h" #include "lzma/C/LzmaLib.h"