"Carl R. Witty" <[EMAIL PROTECTED]> writes:
> Here's the patch I made:
>
> --- stgdefs.h~ Sun Oct 5 13:34:00 1997
> +++ stgdefs.h Sun May 10 15:52:25 1998
> @@ -53,10 +53,12 @@
> #ifdef NON_POSIX_SOURCE
> #undef _POSIX_SOURCE
> #undef _POSIX_C_SOURCE
> +#define _BSD_SOURCE
> #else
> # ifndef aix_TARGET_OS
> /* already defined on aix */
> #define _POSIX_SOURCE 1
> +#define _BSD_SOURCE 1
> # endif
> #ifndef irix_TARGET_OS
> #define _POSIX_C_SOURCE 199301L
Thanks Carl. Several people have run into this before (check the list
archives), but we still don't have any recent Linux installations here
to test out a proper fix on.
My suggestion for the time being: add something like this to your
build.mk:
SRC_CC_OPTS += -optc-D_BSD_SOURCE
This avoids patching the source. You may have to add the flag to
SRC_HC_OPTS too.
Cheers,
Simon
--
Simon Marlow [EMAIL PROTECTED]
University of Glasgow http://www.dcs.gla.ac.uk/~simonm/
finger for PGP public key