[Fakeroot-commits] fakeroot configure.ac,1.44,1.45 message.h,1.3,1.4
schizo@haydn.debian.org
schizo@haydn.debian.org
Update of /cvsroot/fakeroot/fakeroot
In directory haydn:/tmp/cvs-serv11567
Modified Files:
configure.ac message.h
Log Message:
* Handle platforms with inttypes.h but not stdint.h.
Index: configure.ac
===================================================================
RCS file: /cvsroot/fakeroot/fakeroot/configure.ac,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- configure.ac 14 Jun 2004 21:03:08 -0000 1.44
+++ configure.ac 18 Jun 2004 16:33:26 -0000 1.45
@@ -34,11 +34,7 @@
dnl Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
-if test $ac_cv_use_ipc = "tcp"; then
-AC_CHECK_HEADERS(fcntl.h unistd.h features.h sys/feature_tests.h pthread.h)
-else
-AC_CHECK_HEADERS(fcntl.h unistd.h features.h sys/feature_tests.h)
-fi
+AC_CHECK_HEADERS(fcntl.h unistd.h features.h sys/feature_tests.h pthread.h stdint.h inttypes.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
Index: message.h
===================================================================
RCS file: /cvsroot/fakeroot/fakeroot/message.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- message.h 16 Jun 2004 14:13:13 -0000 1.3
+++ message.h 18 Jun 2004 16:33:26 -0000 1.4
@@ -1,7 +1,15 @@
#ifndef FAKEROOT_MESSAGE_H
#define FAKEROOT_MESSAGE_H
+#ifdef HAVE_STDINT_H
#include <stdint.h>
+#else
+# ifdef HAVE_INTTYPES_H
+# include <inttypes.h>
+# else
+# error Problem
+# endif
+#endif
#if __BYTE_ORDER == __BIG_ENDIAN
# define htonll(n) (n)