diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-07-26 17:34:50 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:10:25 -0500 |
commit | da9723c22428254fddaf2a83cf96777c82416950 (patch) | |
tree | 27de4c8db98b5bbe9e920895945b1e3465fb3133 /source4/lib/talloc/talloc.c | |
parent | 02ea24bcd1db8b11a9759ae8c7c99b7558bbe29c (diff) | |
download | samba-da9723c22428254fddaf2a83cf96777c82416950.tar.gz samba-da9723c22428254fddaf2a83cf96777c82416950.tar.bz2 samba-da9723c22428254fddaf2a83cf96777c82416950.zip |
r17264: - remove unused includes from talloc
- check explicit check for varargs.h as fallback from stdarg.h
and fail the build if both are not present
metze
(This used to be commit b091d182fe8f36dfb67b7ede933a963b74034d91)
Diffstat (limited to 'source4/lib/talloc/talloc.c')
-rw-r--r-- | source4/lib/talloc/talloc.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/source4/lib/talloc/talloc.c b/source4/lib/talloc/talloc.c index ca76b05332..5a14109190 100644 --- a/source4/lib/talloc/talloc.c +++ b/source4/lib/talloc/talloc.c @@ -37,22 +37,12 @@ #include <string.h> #include <errno.h> -#ifdef HAVE_SYS_TYPES_H -#include <sys/types.h> -#endif - -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif - -#ifdef HAVE_STDARG_H +#if defined(HAVE_STDARG_H) #include <stdarg.h> -#else +#elif defined (HAVE_VARARGS_H) #include <varargs.h> -#endif - -#ifdef HAVE_STDINT_H -#include <stdint.h> +#else +#error "no var arg header" #endif #include "talloc.h" |