]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include makepath.h first, to test interface.
authorJim Meyering <jim@meyering.net>
Wed, 10 Sep 2003 08:49:49 +0000 (08:49 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 10 Sep 2003 08:49:49 +0000 (08:49 +0000)
Include <stdlib.h> and <string.h> unconditionally.

lib/makepath.c

index f2dfe8891411e582f61f8a7cee175f538b5aee71..422bcda82ac5c27113e04d6570b4d753b6bfa150 100644 (file)
@@ -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>
 
 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)