summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-05-13 20:48:44 +0000
committerJim Meyering <jim@meyering.net>1999-05-13 20:48:44 +0000
commitc93ac403ed1e3688c4d0f2743f01b2dad494bf22 (patch)
tree7be33e313705b0c7fb5413595a5c9c6b6fcd1c09 /lib
parent4c9f46a4a1f84420b405833d5f94d672c7343e9f (diff)
downloadcoreutils-c93ac403ed1e3688c4d0f2743f01b2dad494bf22.tar.xz
Include <string.h> or <strings.h> for strlen prototype.
Diffstat (limited to 'lib')
-rw-r--r--lib/human.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/human.c b/lib/human.c
index 132ba019a..86b33e819 100644
--- a/lib/human.c
+++ b/lib/human.c
@@ -30,6 +30,12 @@
# include <limits.h>
#endif
+#if HAVE_STRING_H
+# include <string.h>
+#else
+# include <strings.h>
+#endif
+
#ifndef CHAR_BIT
# define CHAR_BIT 8
#endif