If we are providing strndup(), ensure we provide a prototype too.
authorAndrew Bartlett <abartlet@samba.org>
Sun, 25 Jan 2004 01:02:39 +0000 (01:02 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 25 Jan 2004 01:02:39 +0000 (01:02 +0000)
Andrew Bartlett

source/include/includes.h

index 638648dc44d659cf1a5ec5f56283b9f131174b01..7f5c111682ed933ea499276a664384acfd45dff8 100644 (file)
@@ -986,6 +986,10 @@ struct smb_ldap_privates;
 char *strdup(const char *s);
 #endif
 
+#ifndef HAVE_STRNDUP
+char *strndup(const char *s, size_t size);
+#endif
+
 #ifndef HAVE_MEMMOVE
 void *memmove(void *dest,const void *src,int size);
 #endif