[Fakeroot-commits] fakeroot communicate.c,1.11,1.12 configure.ac,1.46,1.47
schizo@haydn.debian.org
schizo@haydn.debian.org
Update of /cvsroot/fakeroot/fakeroot
In directory haydn:/tmp/cvs-serv10890
Modified Files:
communicate.c configure.ac
Log Message:
* Handle platforms without endian.h.
Index: communicate.c
===================================================================
RCS file: /cvsroot/fakeroot/fakeroot/communicate.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- communicate.c 16 Jun 2004 13:13:37 -0000 1.11
+++ communicate.c 18 Jun 2004 17:09:22 -0000 1.12
@@ -35,7 +35,9 @@
#include <netinet/tcp.h>
#include <netdb.h>
#include <pthread.h>
-#include <endian.h>
+#ifdef HAVE_ENDIAN_H
+# include <endian.h>
+#endif
#endif /* FAKEROOT_FAKENET */
Index: configure.ac
===================================================================
RCS file: /cvsroot/fakeroot/fakeroot/configure.ac,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- configure.ac 18 Jun 2004 17:06:57 -0000 1.46
+++ configure.ac 18 Jun 2004 17:09:22 -0000 1.47
@@ -34,7 +34,7 @@
dnl Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
-AC_CHECK_HEADERS(fcntl.h unistd.h features.h sys/feature_tests.h pthread.h stdint.h inttypes.h grp.h)
+AC_CHECK_HEADERS(fcntl.h unistd.h features.h sys/feature_tests.h pthread.h stdint.h inttypes.h grp.h endian.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST