On Sat, May 25, 2013 at 01:59:20AM -0700, Paul Eggert wrote: > On 05/24/2013 03:46 PM, Jack Howarth wrote: > > I tried changing the instances of _DARWIN_C_SOURCE to _POSIX_C_SOURCE in > > configure > > That won't work, for the reasons you describe.
I am a bit unclear on that issue. Does darwin lack the complete posix support required for freadahead.c, freadptr.c, fseterr.c and fseeko.c to be rewritten to support compiling with -D_POSIX_C_SOURCE (at least for modern darwin releases)? Or has it just never been implemented in order to maintain support for legacy versions of darwin? > > How about this idea: modify getgroups.m4 to recognize > the Darwin situation and compile a substitute getgroups.c, > and modify getgroups.c to work around the Darwin problem > by defining a rpl_getgroups that calls the correct Darwin > getgroups. It'll take a bit of Darwinish hacking to get > this to work, but it should work. > >