summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-03-17 19:34:16 +0000
committerJim Meyering <jim@meyering.net>2000-03-17 19:34:16 +0000
commit00a6ef7e2e75238cc2c9ca469b73b64c45b30613 (patch)
treeabaf769eebe35b71777c5a69b54a594a8d4f585e /lib
parent03bc0dd04d7297b5f1d04faaafcc00e05102cbe0 (diff)
downloadcoreutils-00a6ef7e2e75238cc2c9ca469b73b64c45b30613.tar.xz
(<string.h>): Include only #if HAVE_STRING_H.
Otherwise, include <strings.h>
Diffstat (limited to 'lib')
-rw-r--r--lib/unicodeio.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/unicodeio.c b/lib/unicodeio.c
index 148d64ea6..9948a4eb5 100644
--- a/lib/unicodeio.c
+++ b/lib/unicodeio.c
@@ -28,7 +28,11 @@
#endif
#include <stdio.h>
-#include <string.h>
+#if HAVE_STRING_H
+# include <string.h>
+#else
+# include <strings.h>
+#endif
#include <errno.h>
#ifndef errno