summaryrefslogtreecommitdiff
path: root/lib/path-concat.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-12-04 09:37:33 +0000
committerJim Meyering <jim@meyering.net>2000-12-04 09:37:33 +0000
commit90799b6c68eebbd2b36af119436b04e64113c0b6 (patch)
treefcc85c4868bb4384e0ca7400b8a8a4e491042cc9 /lib/path-concat.c
parent1c6320fe7c897b538518cdecfcfe8dcd47f58987 (diff)
downloadcoreutils-90799b6c68eebbd2b36af119436b04e64113c0b6.tar.xz
Also include memory.h, stdlib.h, unistd.h if appropriate.
Diffstat (limited to 'lib/path-concat.c')
-rw-r--r--lib/path-concat.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/path-concat.c b/lib/path-concat.c
index dfc540238..3130e386d 100644
--- a/lib/path-concat.c
+++ b/lib/path-concat.c
@@ -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
+#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"