components/pigz/patches/yarn.c.patch
author Mohana Rao Gorai <mohana.gorai@oracle.com>
Wed, 10 Dec 2014 20:16:00 -0800
branchs11-update
changeset 3535 a05569ec203e
parent 3421 fbc84ea2ff1c
permissions -rw-r--r--
19292724 printing to a raw queue is delayed by 4 seconds
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3421
fbc84ea2ff1c 17656250 pigz doesn't compile on s12_33
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     1
# <sys/feature_tests.h> became XPG7-aware in s12_33, thus requiring building
fbc84ea2ff1c 17656250 pigz doesn't compile on s12_33
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     2
# in C99 mode.  But for s12_32 and earlier, it would crap out in C99 mode
fbc84ea2ff1c 17656250 pigz doesn't compile on s12_33
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     3
# unless _XPG6 was defined.  Since this is to work around an oddity with
fbc84ea2ff1c 17656250 pigz doesn't compile on s12_33
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     4
# Solaris header files and build versions, this patch will not be offered
fbc84ea2ff1c 17656250 pigz doesn't compile on s12_33
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     5
# upstream.
fbc84ea2ff1c 17656250 pigz doesn't compile on s12_33
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     6
#
fbc84ea2ff1c 17656250 pigz doesn't compile on s12_33
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     7
--- pigz-2.2.5/yarn.c.orig	2012-01-13 14:56:17.000000000 -0800
fbc84ea2ff1c 17656250 pigz doesn't compile on s12_33
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     8
+++ pigz-2.2.5/yarn.c	2013-10-24 13:13:58.198937572 -0700
fbc84ea2ff1c 17656250 pigz doesn't compile on s12_33
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     9
@@ -23,6 +23,7 @@
fbc84ea2ff1c 17656250 pigz doesn't compile on s12_33
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    10
 #define _XOPEN_SOURCE 700
fbc84ea2ff1c 17656250 pigz doesn't compile on s12_33
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    11
 #define _POSIX_C_SOURCE 200809L
fbc84ea2ff1c 17656250 pigz doesn't compile on s12_33
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    12
 #define _THREAD_SAFE
fbc84ea2ff1c 17656250 pigz doesn't compile on s12_33
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    13
+#define _XPG6
fbc84ea2ff1c 17656250 pigz doesn't compile on s12_33
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    14
 
fbc84ea2ff1c 17656250 pigz doesn't compile on s12_33
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    15
 /* use large file functions if available */
fbc84ea2ff1c 17656250 pigz doesn't compile on s12_33
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    16
 #define _FILE_OFFSET_BITS 64