diff include/freeDiameter/libfdproto.h @ 849:d7f940afd933

New portability function: strndup
author Sebastien Decugis <sdecugis@freediameter.net>
date Sun, 21 Oct 2012 17:12:13 +0200
parents da97a5aa7976
children 12e7fcbc1b21
line wrap: on
line diff
--- a/include/freeDiameter/libfdproto.h	Thu Oct 18 23:00:51 2012 +0200
+++ b/include/freeDiameter/libfdproto.h	Sun Oct 21 17:12:13 2012 +0200
@@ -611,6 +611,9 @@
   int clock_gettime(int clk_id, struct timespec* ts);
 #endif /* HAVE_CLOCK_GETTIME */
 
+#ifndef HAVE_STRNDUP
+char * strndup (char const *s, size_t n);
+#endif /* HAVE_STRNDUP */
 
 
 /*============================================================*/
"Welcome to our mercurial repository"