From 71107c0eb723545ef5807d58af2ab2f5d99d7206 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 2 Nov 2004 00:30:45 +0000 Subject: r3448: some systems don't have stdint.h (This used to be commit 8afc2b3bc19c627f7b970ee6ce0480039ed5d3cb) --- source4/build/m4/rewrite.m4 | 1 + source4/include/includes.h | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'source4') 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 -#endif #include +#ifdef HAVE_STDINT_H #include +#endif #ifdef HAVE_SYS_RESOURCE_H #include #endif #include - #include #include @@ -92,9 +91,7 @@ #include #endif -#ifdef HAVE_STDLIB_H #include -#endif #ifdef HAVE_STRING_H #include -- cgit