pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: -std=gnu99 in compiler wrappers
On Sunday 11 February 2007, Jan Schaumann wrote:
> Raymond Meyer <raymond.meyer%rambler.ru@localhost> 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
Home |
Main Index |
Thread Index |
Old Index