summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-11-02 00:30:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:05:13 -0500
commit71107c0eb723545ef5807d58af2ab2f5d99d7206 (patch)
treeb8470c59366e72a2bbe98864c991633c01015d42
parentead3508ac81ff3ed2a48753f3b5e23537ba6ec73 (diff)
downloadsamba-71107c0eb723545ef5807d58af2ab2f5d99d7206.tar.gz
samba-71107c0eb723545ef5807d58af2ab2f5d99d7206.tar.bz2
samba-71107c0eb723545ef5807d58af2ab2f5d99d7206.zip
r3448: some systems don't have stdint.h
(This used to be commit 8afc2b3bc19c627f7b970ee6ce0480039ed5d3cb)
-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>