changeset 3024:39129a5c1080

Also include memory.h, stdlib.h, unistd.h if appropriate.
author Jim Meyering <jim@meyering.net>
date Mon, 04 Dec 2000 09:37:33 +0000
parents af79bf99024a
children dcf641c92437
files lib/path-concat.c
diffstat 1 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/path-concat.c	Mon Dec 04 09:15:54 2000 +0000
+++ b/lib/path-concat.c	Mon Dec 04 09:37:33 2000 +0000
@@ -26,10 +26,23 @@
 #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
-#include <sys/types.h>
+#if HAVE_STDLIB_H
+# include <stdlib.h>
+#endif
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#endif
 
 #ifndef HAVE_DECL_MALLOC
 "this configure-time declaration test was not run"