pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: -std=gnu99 in compiler wrappers



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



Home | Main Index | Thread Index | Old Index