Fix build on Solaris 8
authorMatthias Clasen <mclasen@redhat.com>
Sun, 21 Feb 2010 20:55:10 +0000 (15:55 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 21 Feb 2010 20:55:10 +0000 (15:55 -0500)
System header fun. See bug 610131.

configure.in
gio/libasyncns/asyncns.c

index 258f8f6..2516388 100644 (file)
@@ -875,7 +875,7 @@ fi
 # check for header files
 AC_CHECK_HEADERS([dirent.h float.h limits.h pwd.h grp.h sys/param.h sys/poll.h sys/resource.h])
 AC_CHECK_HEADERS([sys/time.h sys/times.h sys/wait.h unistd.h values.h])
-AC_CHECK_HEADERS([sys/select.h sys/types.h stdint.h sched.h malloc.h])
+AC_CHECK_HEADERS([sys/select.h sys/types.h stdint.h inttypes.h sched.h malloc.h])
 AC_CHECK_HEADERS([sys/vfs.h sys/mount.h sys/vmount.h sys/statfs.h sys/statvfs.h])
 AC_CHECK_HEADERS([mntent.h sys/mnttab.h sys/vfstab.h sys/mntctl.h sys/sysctl.h fstab.h])
 AC_CHECK_HEADERS([sys/uio.h])
index 8318333..155f491 100644 (file)
 #endif
 
 #include <sys/resource.h>
+#ifdef HAVE_STDINT_H
 #include <stdint.h>
+#endif
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
 
 #ifdef HAVE_SYS_PRCTL_H
 #include <sys/prctl.h>