summaryrefslogtreecommitdiff
path: root/source3/wscript
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-06-20 16:29:24 +0200
committerKai Blin <kai@samba.org>2010-06-20 16:29:38 +0200
commitcfee179d03e9c3b8d02a51995bd1c205daabb6c3 (patch)
tree79f0f4cb2f090c015b7ceab69fe51e21bb706fe6 /source3/wscript
parent9e02764f7c34fd5c9686c7a754a30e9a6ae95769 (diff)
downloadsamba-cfee179d03e9c3b8d02a51995bd1c205daabb6c3.tar.gz
samba-cfee179d03e9c3b8d02a51995bd1c205daabb6c3.tar.bz2
samba-cfee179d03e9c3b8d02a51995bd1c205daabb6c3.zip
s3: Attempt to fix the build on NetBSD
Unlike Linux and OSX, NetBSD seems to have *netgrent prototypes in netgroup.h.
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/wscript b/source3/wscript
index aec71afc5c..0b31563343 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -364,15 +364,15 @@ utimensat vsyslog _write __write __xstat
conf.CHECK_FUNCS('setnetgrent getnetgrent endnetgrent')
conf.CHECK_CODE('setnetgrent("foo")', 'HAVE_SETNETGRENT_PROTOTYPE',
msg="Checking for setnetgrent prototype",
- headers='netdb.h',
+ headers='netdb.h netgroup.h',
cflags="-Werror-implicit-function-declaration")
conf.CHECK_CODE('getnetgrent', 'HAVE_GETNETGRENT_PROTOTYPE',
msg="Checking for getnetgrent prototype",
- headers='netdb.h',
+ headers='netdb.h netgroup.h',
cflags="-Werror-implicit-function-declaration")
conf.CHECK_CODE('endnetgrent', 'HAVE_ENDNETGRENT_PROTOTYPE',
msg="Checking for endnetgrent prototype",
- headers='netdb.h',
+ headers='netdb.h netgroup.h',
cflags="-Werror-implicit-function-declaration")
#FIXME: Should just be set when krb5 and ldap requirements are fulfilled