Guard some #includes with `#if HAVE_...'.
authorJim Meyering <jim@meyering.net>
Wed, 1 Mar 2000 13:21:23 +0000 (13:21 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 1 Mar 2000 13:21:23 +0000 (13:21 +0000)
lib/localcharset.c

index 0005910..86f43b5 100644 (file)
 # include <config.h>
 #endif
 
-#include <stddef.h>
+#if HAVE_STDDEF_H
+# include <stddef.h>
+#endif
+
 #include <stdio.h>
-#include <string.h>
+#if HAVE_STRING_H
+# include <string.h>
+#else
+# include <strings.h>
+#endif
 #if HAVE_STDLIB_H
 # include <stdlib.h>
 #endif