summaryrefslogtreecommitdiff
path: root/source4/lib/replace/snprintf.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-06 11:31:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:44 -0500
commit3ca73facc59ed8a97abbc28c1b4bedde87e109a6 (patch)
tree6959d7d7e546cf8be7e57eb9bcd1cdfb1170b412 /source4/lib/replace/snprintf.c
parentd093b28b55bac53c32cf3bf35424ca967b55bfc5 (diff)
downloadsamba-3ca73facc59ed8a97abbc28c1b4bedde87e109a6.tar.gz
samba-3ca73facc59ed8a97abbc28c1b4bedde87e109a6.tar.bz2
samba-3ca73facc59ed8a97abbc28c1b4bedde87e109a6.zip
r18160: - pread and pwrite replacements need to be non-static
- replacing rename() is pointless - all platforms have it (and the #define of rename breaks some code) - use system/locale.h in snprintf.c - fix passwd.h for initgroups - stdlib is in replace.h, not needed elsewhere - fix the initgroups replacement - fix mapping of dl functions to rep_* (This used to be commit 57cd0ca176387d6a3acabf9fedeef4f2a3a3dad7)
Diffstat (limited to 'source4/lib/replace/snprintf.c')
-rw-r--r--source4/lib/replace/snprintf.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/source4/lib/replace/snprintf.c b/source4/lib/replace/snprintf.c
index dd41ca3306..5416a9d3e2 100644
--- a/source4/lib/replace/snprintf.c
+++ b/source4/lib/replace/snprintf.c
@@ -104,6 +104,7 @@
**************************************************************/
#include "replace.h"
+#include "system/locale.h"
#ifdef TEST_SNPRINTF /* need math library headers for testing */
@@ -117,22 +118,6 @@
# include <math.h>
#endif /* TEST_SNPRINTF */
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-#ifdef HAVE_CTYPE_H
-#include <ctype.h>
-#endif
-#include <sys/types.h>
-#include <stdarg.h>
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
#if defined(HAVE_SNPRINTF) && defined(HAVE_VSNPRINTF) && defined(HAVE_C99_VSNPRINTF)
/* only include stdio.h if we are not re-defining snprintf or vsnprintf */
#include <stdio.h>