summaryrefslogtreecommitdiff
path: root/source4/lib/replace/snprintf.c
diff options
context:
space:
mode:
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>