Incremental patch by Guido.
The original patch did not compile on systems without initgroups.
/*
- * $Id: initgroups.h,v 1.1 2004/10/20 22:41:03 hno Exp $
+ * $Id: initgroups.h,v 1.2 2004/11/06 22:09:19 hno Exp $
*/
#ifndef SQUID_INITGROUPS_H
#define SQUID_INITGROUPS_H
#include <sys/types.h>
#endif
-extern int initgroups(const char *user, gid_t group);
+SQUIDCEXTERN int initgroups(const char *user, gid_t group);
#endif /* SQUID_INITGROPS_H */
#if HAVE_LIMITS_H
#include <limits.h>
#endif
+#if !HAVE_INITGROUPS
+#include "initgroups.h"
+#endif
int initgroups(const char *name, gid_t basegid)
{