Subject: Re: -std=gnu99 in compiler wrappers
To: Jan Schaumann <jschauma@netmeister.org>
From: Mark Davies <mark@mcs.vuw.ac.nz>
List: pkgsrc-users
Date: 02/11/2007 14:19:42
On Sunday 11 February 2007, Jan Schaumann wrote:
> Raymond Meyer <raymond.meyer@rambler.ru> wrote:
> > Is there really a need for c99? It breaks this package build on
> > Solaris
>
> Unfortunately, it is in fact needed. Certain code that uses C99
> features does not compile with certain compilers unless you tell
> them to use c99 mode (*cough* IRIX *cough*).
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 */
#include <sys/types.h>
cheers
mark