summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/build/m4/rewrite.m41
-rw-r--r--source4/include/includes.h7
2 files changed, 3 insertions, 5 deletions
diff --git a/source4/build/m4/rewrite.m4 b/source4/build/m4/rewrite.m4
index 48c6c6627a..04d904a68d 100644
--- a/source4/build/m4/rewrite.m4
+++ b/source4/build/m4/rewrite.m4
@@ -241,6 +241,7 @@ AC_CHECK_HEADERS(sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h t
AC_CHECK_HEADERS(sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h)
AC_CHECK_HEADERS(security/pam_modules.h security/_pam_macros.h dlfcn.h)
AC_CHECK_HEADERS(sys/syslog.h syslog.h)
+AC_CHECK_HEADERS(stdint.h)
#
# HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
diff --git a/source4/include/includes.h b/source4/include/includes.h
index 24319cad06..c4926ee7c5 100644
--- a/source4/include/includes.h
+++ b/source4/include/includes.h
@@ -72,19 +72,18 @@
/** Feel free to add definitions for other compilers here. */
#endif
-#ifdef HAVE_UNISTD_H
#include <unistd.h>
-#endif
#include <sys/types.h>
+#ifdef HAVE_STDINT_H
#include <stdint.h>
+#endif
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif
#include <unistd.h>
-
#include <stdio.h>
#include <stddef.h>
@@ -92,9 +91,7 @@
#include <sys/param.h>
#endif
-#ifdef HAVE_STDLIB_H
#include <stdlib.h>
-#endif
#ifdef HAVE_STRING_H
#include <string.h>