diff options
author | Jim Meyering <jim@meyering.net> | 2000-12-04 09:37:33 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-12-04 09:37:33 +0000 |
commit | 90799b6c68eebbd2b36af119436b04e64113c0b6 (patch) | |
tree | fcc85c4868bb4384e0ca7400b8a8a4e491042cc9 | |
parent | 1c6320fe7c897b538518cdecfcfe8dcd47f58987 (diff) | |
download | coreutils-90799b6c68eebbd2b36af119436b04e64113c0b6.tar.xz |
Also include memory.h, stdlib.h, unistd.h if appropriate.
-rw-r--r-- | lib/path-concat.c | 15 |
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" |