ff32f691bba41afab45efe7e21a2c91bb2c157bb uses -Werror-implicit-function-declaration (a GCC only thing) which makes the test fail on AIX and later on makes the build fail.
-Werror-implicit-function-declaration is the core part of the current check. The check is needed to support this API on different OSX/NetBSD versions. Feel free to fix the whole check, but this was the only one I could come with that worked correctly on the systems I tried this on.
Created attachment 5904 [details] Fix for netgrent checks on compilers that don't support -Werror-implicit-function-declaration This works on my Linux box, don't currently have access to the OSX box where I saw the initial problem. Please check if the patch fixes AIX, I'll confirm that it still works on OSX once I get back to that machine.
looks more reasonable but I have not tested it but at least it does not use a gcc-only option unconditionally :-). I suppose just check it in to master and see if it works. You can also log in to SerNet-aix (also sunX with the studio compiler is affected by that).
Looks fixed on the build farm.
Comment on attachment 5904 [details] Fix for netgrent checks on compilers that don't support -Werror-implicit-function-declaration Clearing up old requests