From e6a4feb763749ff0c63558db456e617915fd1386 Mon Sep 17 00:00:00 2001 From: hasso Date: Mon, 19 Sep 2005 09:53:21 +0000 Subject: * configure.ac: Test existance of strndup. * lib/str.[ch]: Add strndup() from glibc. --- lib/str.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/str.h') diff --git a/lib/str.h b/lib/str.h index 145863d2..7b83fe1c 100644 --- a/lib/str.h +++ b/lib/str.h @@ -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 */ -- cgit v1.2.1