cfengine/core — pull request #181 by vohi (2012-09-28 07:56:20+00:00)
Title: Fix compilation on Mac

On Darwin, netdb.h declares setnetgrend/endnetgrend with void return type.

void	endnetgrent(void);
void	setnetgrent(const char *);

HAVE_DECL_SETNETGREND/ENDNETGREND are not set by configure, compilation fails on Mac with

platform.h:384: error: conflicting types for 'setnetgrent'
/usr/include/netdb.h:316: error: previous declaration of 'setnetgrent' was here
platform.h:388: error: conflicting types for 'endnetgrent'
/usr/include/netdb.h:315: error: previous declaration of 'endnetgrent' was here

Probably better to fix this in configure, for all BSDs.