# HG changeset patch # User John Beck # Date 1382732618 25200 # Node ID e02c36c9062c82bb4b7af748fffd9dc41c6b715b # Parent a6f52c3cea4abd5751faae68f6ab335efeec4bc3 17656250 pigz doesn't compile on s12_33 diff -r a6f52c3cea4a -r e02c36c9062c components/pigz/Makefile --- a/components/pigz/Makefile Fri Oct 25 09:21:57 2013 -0700 +++ b/components/pigz/Makefile Fri Oct 25 13:23:38 2013 -0700 @@ -39,6 +39,8 @@ PKG_PROTO_DIRS += $(BUILD_DIR_64) +studio_C99MODE= $(studio_C99_ENABLE) + CC += $(CC_BITS) COMPONENT_BUILD_ARGS += CC="$(CC)" COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)" diff -r a6f52c3cea4a -r e02c36c9062c components/pigz/patches/yarn.c.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/pigz/patches/yarn.c.patch Fri Oct 25 13:23:38 2013 -0700 @@ -0,0 +1,16 @@ +# became XPG7-aware in s12_33, thus requiring building +# in C99 mode. But for s12_32 and earlier, it would crap out in C99 mode +# unless _XPG6 was defined. Since this is to work around an oddity with +# Solaris header files and build versions, this patch will not be offered +# upstream. +# +--- pigz-2.2.5/yarn.c.orig 2012-01-13 14:56:17.000000000 -0800 ++++ pigz-2.2.5/yarn.c 2013-10-24 13:13:58.198937572 -0700 +@@ -23,6 +23,7 @@ + #define _XOPEN_SOURCE 700 + #define _POSIX_C_SOURCE 200809L + #define _THREAD_SAFE ++#define _XPG6 + + /* use large file functions if available */ + #define _FILE_OFFSET_BITS 64