Subject: Re: -std=gnu99 in compiler wrappers
To: Mark Davies <mark@mcs.vuw.ac.nz>
From: Roland Illig <rillig@NetBSD.org>
List: pkgsrc-users
Date: 02/11/2007 17:58:13
Mark Davies wrote:
> The following patch fixes the particular glib issue on Solaris, I 
> presume it won't give IRIX or any other system grief.
> 
> $NetBSD$
> 
> --- glib/giounix.c.orig	2007-01-30 02:23:28.238812000 +1300
> +++ glib/giounix.c
> @@ -33,6 +33,7 @@
>  
>  #include "config.h"
>  
> +#define _XPG6
>  #define _POSIX_SOURCE		/* for SSIZE_MAX */

/usr/include/sys/feature_tests.h:
  * In order to simplify the guards within the headers, the following
  * implementation private test macros have been created. Applications
  * must NOT use these private test macros as unexpected results will
  * occur.
...
  * _XPG6

Roland