summaryrefslogtreecommitdiff
path: root/source3/smbd/password.c
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-06-15 06:52:42 +0200
committerKai Blin <kai@samba.org>2010-06-17 08:09:49 +0200
commit7a1c24705dba06753a693a3dbee93d473726d05a (patch)
treec6db71a3faa3c8e47e92fd5b11b2c796b9d29dff /source3/smbd/password.c
parentd9c81e3ea54fabc30121872a56bf3a393f26983b (diff)
downloadsamba-7a1c24705dba06753a693a3dbee93d473726d05a.tar.gz
samba-7a1c24705dba06753a693a3dbee93d473726d05a.tar.bz2
samba-7a1c24705dba06753a693a3dbee93d473726d05a.zip
s3-waf: Work around missing *netgrent prototypes on OSX 10.4
Diffstat (limited to 'source3/smbd/password.c')
-rw-r--r--source3/smbd/password.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index b1fd4b88d2..1a55a396f2 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -21,6 +21,17 @@
#include "includes.h"
#include "smbd/globals.h"
+/* Fix up prototypes for OSX 10.4, where they're missing */
+#ifndef HAVE_SETNETGRENT_PROTOTYPE
+extern int setnetgrent(const char* netgroup);
+#endif
+#ifndef HAVE_GETNETGRENT_PROTOTYPE
+extern int getnetgrent(char **host, char **user, char **domain);
+#endif
+#ifndef HAVE_ENDNETGRENT_PROTOTYPE
+extern void endnetgrent(void);
+#endif
+
enum server_allocated_state { SERVER_ALLOCATED_REQUIRED_YES,
SERVER_ALLOCATED_REQUIRED_NO,
SERVER_ALLOCATED_REQUIRED_ANY};