Also include memory.h, stdlib.h, unistd.h if appropriate.
authorJim Meyering <jim@meyering.net>
Mon, 4 Dec 2000 09:37:33 +0000 (09:37 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 4 Dec 2000 09:37:33 +0000 (09:37 +0000)
lib/path-concat.c

index dfc54023817ae6f705bdb488a3c62ea909a072a6..3130e386df4ed6221b4d08d90376de1c123417b6 100644 (file)
 #endif
 
 #include <stdio.h>
+
 #if HAVE_STRING_H
+# if !STDC_HEADERS && HAVE_MEMORY_H
+#  include <memory.h>
+# endif
 # include <string.h>
+#else
+# if HAVE_STRINGS_H
+#  include <strings.h>
+# endif
+#endif
+#if HAVE_STDLIB_H
+# include <stdlib.h>
+#endif
+#if HAVE_UNISTD_H
+# include <unistd.h>
 #endif
-#include <sys/types.h>
 
 #ifndef HAVE_DECL_MALLOC
 "this configure-time declaration test was not run"