[Fakeroot-commits] fakeroot configure.ac,1.48,1.49 faked.c,1.5,1.6
schizo@haydn.debian.org
schizo@haydn.debian.org
Update of /cvsroot/fakeroot/fakeroot
In directory haydn:/tmp/cvs-serv790
Modified Files:
configure.ac faked.c
Log Message:
* faked.c: Include sys/sysmacros.h if available ( for MAX()).
Index: configure.ac
===================================================================
RCS file: /cvsroot/fakeroot/fakeroot/configure.ac,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- configure.ac 18 Jun 2004 17:18:23 -0000 1.48
+++ configure.ac 18 Jun 2004 17:20:23 -0000 1.49
@@ -35,7 +35,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 endian.h)
+AC_CHECK_HEADERS(fcntl.h unistd.h features.h sys/feature_tests.h pthread.h stdint.h inttypes.h grp.h endian.h sys/sysmacros.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
Index: faked.c
===================================================================
RCS file: /cvsroot/fakeroot/fakeroot/faked.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- faked.c 18 Jun 2004 17:16:50 -0000 1.5
+++ faked.c 18 Jun 2004 17:20:23 -0000 1.6
@@ -71,14 +71,14 @@
#include "config.h"
#include "communicate.h"
#ifndef FAKEROOT_FAKENET
-#include <sys/ipc.h>
-#include <sys/msg.h>
+# include <sys/ipc.h>
+# include <sys/msg.h>
#else /* FAKEROOT_FAKENET */
-#include <sys/stat.h>
+# include <sys/stat.h>
#endif /* FAKEROOT_FAKENET */
#include <sys/wait.h>
#ifndef FAKEROOT_FAKENET
-#include <sys/sem.h>
+# include <sys/sem.h>
#endif /* ! FAKEROOT_FAKENET */
#include <sys/types.h>
#include <fcntl.h>
@@ -91,15 +91,18 @@
#include <string.h>
#include <signal.h>
#ifdef FAKEROOT_FAKENET
-#include <sys/socket.h>
-#include <sys/param.h>
-#include <netinet/in.h>
-#include <netinet/tcp.h>
-#include <arpa/inet.h>
-#include <netdb.h>
+# include <sys/socket.h>
+# include <sys/param.h>
+# include <netinet/in.h>
+# include <netinet/tcp.h>
+# include <arpa/inet.h>
+# include <netdb.h>
#endif /* FAKEROOT_FAKENET */
#ifdef HAVE_STDINT_H
-#include <stdint.h>
+# include <stdint.h>
+#endif
+#ifdef HAVE_SYS_SYSMACROS_H
+# include <sys/sysmacros.h>
#endif
#ifndef FAKEROOT_FAKENET