summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-01-25 01:02:39 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-01-25 01:02:39 +0000
commit181f2be495801c2a1d458b99ed2cd2fdff86c2a3 (patch)
tree8faa4a0496431f6d247aa8d17d042d8e97420795 /source3/include
parent236adfd9f4ba3ebcb22995431b1935193206e5c2 (diff)
downloadsamba-181f2be495801c2a1d458b99ed2cd2fdff86c2a3.tar.gz
samba-181f2be495801c2a1d458b99ed2cd2fdff86c2a3.tar.bz2
samba-181f2be495801c2a1d458b99ed2cd2fdff86c2a3.zip
If we are providing strndup(), ensure we provide a prototype too.
Andrew Bartlett (This used to be commit 109627145463fc4c00b8f6664e3f2e48e0305d56)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/includes.h4
1 files changed, 4 insertions, 0 deletions
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