]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Always include <string.h>, since we assume C89.
authorJim Meyering <jim@meyering.net>
Mon, 2 Jun 2003 06:56:30 +0000 (06:56 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 2 Jun 2003 06:56:30 +0000 (06:56 +0000)
Include <limits.h> without checking for HAVE_LIMITS_H.

src/system.h

index 33f9fba37d4b457eba96d3c1b5c3d201728d3a8f..c4c4d64e66def5c6bbb759cd33e59a9736944494 100644 (file)
@@ -52,11 +52,9 @@ you must include <sys/types.h> before including this file
 #endif
 
 
-#if HAVE_LIMITS_H
 /* limits.h must come before pathmax.h because limits.h on some systems
    undefs PATH_MAX, whereas pathmax.h sets PATH_MAX.  */
-# include <limits.h>
-#endif
+#include <limits.h>
 
 #include "pathmax.h"
 #include "localedir.h"
@@ -109,14 +107,7 @@ struct utimbuf
 /* Don't use bcopy!  Use memmove if source and destination may overlap,
    memcpy otherwise.  */
 
-#if HAVE_STRING_H
-# if !STDC_HEADERS && HAVE_MEMORY_H
-#  include <memory.h>
-# endif
-# include <string.h>
-#else
-# include <strings.h>
-#endif
+#include <string.h>
 #if ! HAVE_DECL_MEMRCHR
 void *memrchr (const void *, int, size_t);
 #endif