projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5ccbc7
)
[!HAVE_DECL_STRNLEN]: Declare strnlen.
author
Jim Meyering
<jim@meyering.net>
Tue, 4 Jul 2000 17:37:43 +0000
(17:37 +0000)
committer
Jim Meyering
<jim@meyering.net>
Tue, 4 Jul 2000 17:37:43 +0000
(17:37 +0000)
lib/strndup.c
patch
|
blob
|
history
diff --git
a/lib/strndup.c
b/lib/strndup.c
index 6f59717cfab46b0c6dd3d6f326cc87fc75e57888..136e51c736d4c8656cd2ab3f11767028a876e554 100644
(file)
--- a/
lib/strndup.c
+++ b/
lib/strndup.c
@@
-31,6
+31,13
@@
char *malloc ();
#endif
+#ifndef HAVE_DECL_STRNLEN
+"this configure-time declaration test was not run"
+#endif
+#if !HAVE_DECL_STRNLEN
+size_t strnlen ();
+#endif
+
#undef __strndup
#undef strndup