summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-06-29 11:29:55 +0000
committerJim Meyering <jim@meyering.net>2000-06-29 11:29:55 +0000
commitd1e34222a851319531331b92abf53a79c44dcdc7 (patch)
treea18883863605287c6b69d997b90f1e9af9c88c86 /lib
parent13f4d232145ac9ffc1d6515c31419f16f3cef297 (diff)
downloadcoreutils-d1e34222a851319531331b92abf53a79c44dcdc7.tar.xz
Include <string.h> or <strings.h>, as appropriate, for declaration of strcmp.
Diffstat (limited to 'lib')
-rw-r--r--lib/same.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/same.c b/lib/same.c
index 1cfb69322..dc28c7bda 100644
--- a/lib/same.c
+++ b/lib/same.c
@@ -36,6 +36,12 @@
extern int errno;
#endif
+#if HAVE_STRING_H
+# include <string.h>
+#else
+# include <strings.h>
+#endif
+
#include "same.h"
#include "dirname.h"
#include "error.h"