From 21ec3fa3e3ce09b5476e4d3d1452dc6477f8b8ef Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 25 Jan 2004 01:34:08 +0000 Subject: (merge from 3.0) If we are providing strndup(), ensure we provide a prototype too. Andrew Bartlett (This used to be commit 5536c7448e88caa95b13c01956c37deee899dd92) --- source3/include/includes.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3') diff --git a/source3/include/includes.h b/source3/include/includes.h index 4e7913ea38..1867aeda12 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -991,6 +991,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 -- cgit