diff options
author | Jim Meyering <jim@meyering.net> | 2003-09-10 08:49:49 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-09-10 08:49:49 +0000 |
commit | 0d87ae92fb80f875037d28f714ba94378b537da5 (patch) | |
tree | f6d83d6f99da1aae0dedd97d6f95e86826f67ecc | |
parent | 06d7d0633cb4f9732cc24cd29af2047a60c19db4 (diff) | |
download | coreutils-0d87ae92fb80f875037d28f714ba94378b537da5.tar.xz |
Include makepath.h first, to test interface.
Include <stdlib.h> and <string.h> unconditionally.
-rw-r--r-- | lib/makepath.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/lib/makepath.c b/lib/makepath.c index f2dfe8891..422bcda82 100644 --- a/lib/makepath.c +++ b/lib/makepath.c @@ -23,6 +23,8 @@ # include <config.h> #endif +#include "makepath.h" + #include <alloca.h> #include <stdio.h> @@ -44,9 +46,7 @@ # define S_IRWXUGO (S_IRWXU | S_IRWXG | S_IRWXO) #endif -#if STDC_HEADERS -# include <stdlib.h> -#endif +#include <stdlib.h> #include <errno.h> @@ -54,14 +54,7 @@ extern int errno; #endif -#if HAVE_STRING_H -# include <string.h> -#else -# include <strings.h> -# ifndef strchr -# define strchr index -# endif -#endif +#include <string.h> #ifndef S_ISUID # define S_ISUID 04000 @@ -88,8 +81,6 @@ extern int errno; #define WX_USR (S_IWUSR | S_IXUSR) -#include "makepath.h" - #include "gettext.h" #define _(msgid) gettext (msgid) |