summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-06-02 06:56:30 +0000
committerJim Meyering <jim@meyering.net>2003-06-02 06:56:30 +0000
commit885d681dff2ab87b9d17404d27b317614dd80155 (patch)
tree5eba4409d772783dcb57469229fba8049af40217 /src
parent0dd2834cd26830fe0ec8caef8c9e6bae680ee110 (diff)
downloadcoreutils-885d681dff2ab87b9d17404d27b317614dd80155.tar.xz
Always include <string.h>, since we assume C89.
Include <limits.h> without checking for HAVE_LIMITS_H.
Diffstat (limited to 'src')
-rw-r--r--src/system.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/system.h b/src/system.h
index 33f9fba37..c4c4d64e6 100644
--- a/src/system.h
+++ b/src/system.h
@@ -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