is asking for trouble. On solaris these options are mutually exclusive because 600 needs C99 and 500 is not allowed to use C99. I lowered the requirement to _XOPEN_SOURCE=500 and the build succeeded. While here I'll note that PR pkg/42897 (netbpm link error on Solaris 10) should now be fixed by libpng-1.2.41nb1.
17 lines
505 B
Text
17 lines
505 B
Text
$NetBSD: patch-db,v 1.3 2010/03/04 11:01:01 tnn Exp $
|
|
|
|
--- converter/other/jpeg2000/pamtojpeg2k.c.orig 2007-12-27 22:32:59.000000000 +0000
|
|
+++ converter/other/jpeg2000/pamtojpeg2k.c
|
|
@@ -10,7 +10,11 @@
|
|
|
|
#define _BSD_SOURCE 1 /* Make sure strdup() is in string.h */
|
|
/* Make sure strdup() is in string.h and int_fast32_t is in inttypes.h */
|
|
-#define _XOPEN_SOURCE 600
|
|
+#ifdef __osf__
|
|
+#define _OSF_SOURCE
|
|
+#else
|
|
+#define _XOPEN_SOURCE 500
|
|
+#endif /* __osf__ */
|
|
#include <string.h>
|
|
|
|
#include "pam.h"
|