projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f284e2
)
Include memory.h, string.h, and/or strings.h as needed.
author
Jim Meyering
<jim@meyering.net>
Sun, 18 Jun 2000 18:16:54 +0000
(18:16 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 18 Jun 2000 18:16:54 +0000
(18:16 +0000)
(this snippet comes from src/system.h).
lib/strnlen.c
patch
|
blob
|
history
diff --git
a/lib/strnlen.c
b/lib/strnlen.c
index f5681ca383919053795d35fc4dba5f96388b8121..556d2d55ce3aacdbcf5d2e4cd8a1e532ec55f016 100644
(file)
--- a/
lib/strnlen.c
+++ b/
lib/strnlen.c
@@
-21,7
+21,14
@@
# include <config.h>
#endif
-#include <string.h>
+#if HAVE_STRING_H
+# if !STDC_HEADERS && HAVE_MEMORY_H
+# include <memory.h>
+# endif
+# include <string.h>
+#else
+# include <strings.h>
+#endif
#ifndef HAVE_DECL_MEMCHR
"this configure-time declaration test was not run"