diff options
Diffstat (limited to 'lib/path-concat.c')
-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" |