Bill Fenner wrote:
> 
> Here's my suggested fix:

> @@ -0,0 +1,8 @@
> +/*
> + * Tell GNU sort(1) to implement the obsolete +1 -0 syntax even though
> + * it has been removed from the version of POSIX that the rest of
> + * the system conforms to.
> + */
> +int posix2_version(void) {
> +     return 0;
> +}

Try something like this:
#include <stdlib.h>
#include <unistd.h>
int
posix2_version(void)
{
        if (getenv("POSIX_ME_HARDER") || getenv("POSIXLY_CORRECT"))
                return _POSIX2_VERSION;
        else
                return 0;
}

Cheers,
-Peter
--
Peter Wemm - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
"All of this is for nothing if we don't go to the stars" - JMS/B5


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to