Copying up to the list, since this pertains to users. Hey! We're back! :) Alex and I have been cleaning up the compilation process a bit, with the code sitting in CVS/HEAD. The conversion to Automake left some flag definitions out of the mix, and changes in autoconf have caused a few breakages. I'm about to make a commit to HEAD to incorporate some of our changes. It would be nice to get a 4.2 out the door sooner than later. Any volunteers to help?
On 01/06/2012 01:07 AM, Alex Manoussakis wrote:
I've seen an example of declaring this explicitly before calling the
#declare _POSIX_SOURCE = 1
I believe this is the right way to go. I've been chewing on this one
since last night, and taking into consideration the following
recommendation by Paul Eggert on 8/1/2000 in the address@hidden list (
"Sorry that my suggestions waffled about _POSIX_SOURCE, but it is a
problematic area. You can't define _POSIX_SOURCE or _POSIX_C_SOURCE
unconditionally, as that causes possibly-undesirable changes on
Solaris and many other platforms. On the other hand, if you don't
define thes macros up-front on hosts like Minix, you either need hacks
like AC_MINIX and AC_ISC_POSIX, or you need to have a separate
autoconf macro for fileno, tzset, etc.; and both these alternatives
are more unpleasant than simply defining one of those feature-test
macros if <stdio.h> doesn't define fileno."
I've also noticed that we're putting most of our includes in the gnats.h
header, then including that file everywhere. I'm not really keen on
fixing this right now, but I'm not in favor of this "include everything"
approach. *shrug* For now, I'll throw the _POSIX_SOURCE definition
just above stdio.h.
Then maybe we can dive into this unused "input" function.