summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-01-25 01:34:08 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-01-25 01:34:08 +0000
commit21ec3fa3e3ce09b5476e4d3d1452dc6477f8b8ef (patch)
treee71e43daabc04d375a97921f34b4cbd4aefe6ebd /source3/include
parentf1c7ebf5432b94dc24e4038530d2c72329c7de2a (diff)
downloadsamba-21ec3fa3e3ce09b5476e4d3d1452dc6477f8b8ef.tar.gz
samba-21ec3fa3e3ce09b5476e4d3d1452dc6477f8b8ef.tar.bz2
samba-21ec3fa3e3ce09b5476e4d3d1452dc6477f8b8ef.zip
(merge from 3.0)
If we are providing strndup(), ensure we provide a prototype too. Andrew Bartlett (This used to be commit 5536c7448e88caa95b13c01956c37deee899dd92)
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 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