From 7a1c24705dba06753a693a3dbee93d473726d05a Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Tue, 15 Jun 2010 06:52:42 +0200 Subject: s3-waf: Work around missing *netgrent prototypes on OSX 10.4 --- source3/smbd/password.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source3/smbd') 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}; -- cgit