summaryrefslogtreecommitdiffstats
path: root/lib/str.h
diff options
context:
space:
mode:
authorajs <ajs>2005-04-02 16:01:05 +0000
committerajs <ajs>2005-04-02 16:01:05 +0000
commite699d4ce6b5f2b2841d33be42f7286986e4f23ae (patch)
tree0bf7949149c681f06cfdfc32b28fbf2d18a4bd7a /lib/str.h
parentc4f3f62342d171aaaeee81760d28793e1dc2e9bf (diff)
downloadquagga-e699d4ce6b5f2b2841d33be42f7286986e4f23ae.tar.bz2
quagga-e699d4ce6b5f2b2841d33be42f7286986e4f23ae.tar.xz
2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* configure.ac: Add strnlen to AC_CHECK_FUNCS. * zebra.h: Should include str.h to pick up missing functions. * str.h: Declare strnlen if needed. * str.c: Do not include str.h since zebra.h now includes it. (strnlen) New function.
Diffstat (limited to 'lib/str.h')
-rw-r--r--lib/str.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/str.h b/lib/str.h
index f06d7543..5492469e 100644
--- a/lib/str.h
+++ b/lib/str.h
@@ -21,4 +21,8 @@ size_t strlcpy(char *, const char *, size_t);
size_t strlcat(char *, const char *, size_t);
#endif
+#ifndef HAVE_STRNLEN
+extern size_t strnlen(const char *s, size_t maxlen);
+#endif
+
#endif