summary refs log tree commit diff
path: root/src/portab/portab.h
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@lodoss.net>2013-08-26 10:47:04 +0100
committerFederico G. Schwindt <fgsch@lodoss.net>2013-08-26 10:47:04 +0100
commit6ac5a82eecb76ec35f3f484149ad668073a52620 (patch)
tree1e83126d7bffd98ee7a0e4ee9287e760d3ab4629 /src/portab/portab.h
parent086cf3a2723e2dcc8e1acf49d166e254fe22e7cf (diff)
downloadngircd-6ac5a82eecb76ec35f3f484149ad668073a52620.tar.gz
ngircd-6ac5a82eecb76ec35f3f484149ad668073a52620.zip
private strndup() implementation in case libc does not provide it
Diffstat (limited to 'src/portab/portab.h')
-rw-r--r--src/portab/portab.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/portab/portab.h b/src/portab/portab.h
index 208d3500..a968a3b9 100644
--- a/src/portab/portab.h
+++ b/src/portab/portab.h
@@ -157,6 +157,10 @@ extern size_t strlcpy PARAMS(( char *dst, const char *src, size_t size ));
 extern char * strdup PARAMS(( const char *s ));
 #endif
 
+#ifndef HAVE_STRNDUP
+extern char * strndup PARAMS((const char *s, size_t maxlen));
+#endif
+
 #ifndef HAVE_STRTOK_R
 extern char * strtok_r PARAMS((char *str, const char *delim, char **saveptr));
 #endif