From 181f2be495801c2a1d458b99ed2cd2fdff86c2a3 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 25 Jan 2004 01:02:39 +0000 Subject: If we are providing strndup(), ensure we provide a prototype too. Andrew Bartlett (This used to be commit 109627145463fc4c00b8f6664e3f2e48e0305d56) --- source3/include/includes.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/include/includes.h') diff --git a/source3/include/includes.h b/source3/include/includes.h index 638648dc44..7f5c111682 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -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 -- cgit