diff options
author | hasso <hasso> | 2005-09-19 11:53:21 +0200 |
---|---|---|
committer | hasso <hasso> | 2005-09-19 11:53:21 +0200 |
commit | e6a4feb763749ff0c63558db456e617915fd1386 (patch) | |
tree | e348859f9ef281521ad13552e062ea6da44a2248 /lib/str.h | |
parent | * isis_lsp.c: Better output of detailed LSP printout and fixed TE IPv4 (diff) | |
download | frr-e6a4feb763749ff0c63558db456e617915fd1386.tar.xz frr-e6a4feb763749ff0c63558db456e617915fd1386.zip |
* configure.ac: Test existance of strndup.
* lib/str.[ch]: Add strndup() from glibc.
Diffstat (limited to '')
-rw-r--r-- | lib/str.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,5 @@ /* - * $Id: str.h,v 1.3 2005/05/06 21:25:49 paul Exp $ + * $Id: str.h,v 1.4 2005/09/19 09:53:21 hasso Exp $ */ #ifndef _ZEBRA_STR_H @@ -25,5 +25,9 @@ extern size_t strlcat(char *, const char *, size_t); extern size_t strnlen(const char *s, size_t maxlen); #endif +#ifndef HAVE_STRNDUP +extern char * strndup (const char *, size_t); +#endif + #endif /* _ZEBRA_STR_H */ |