Paul Eggert <[EMAIL PROTECTED]> writes:
| Now that Minix is free software, it's higher priority for autoconf to
| support it more accurately.  Minix is small so this should be easy to
| do.  I just downloaded Minix 2.0 (the free version) and discovered the
| following:
...
| It looks like it would be better after all to follow my initial
| suggestion and define _POSIX_SOURCE if <stdio.h> does not define
| fileno.  This would be done by trying to compile the fileno test
| program with -D_POSIX_C_SOURCE=2147483647 (the modern way to do it),
| and if that doesn't help to try again with -D_POSIX_SOURCE (the
| old-fashioned way, which Minix 2.0 uses).
|
| 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.

Sounds good to me.

Reply via email to