components/apr-1_5/patches/largefile.patch
author pkidd <patrick.kidd@oracle.com>
Thu, 01 Dec 2016 09:15:00 -0800
branchs11u3-sru
changeset 7423 a17eef087a5e
parent 3668 614657dc60eb
permissions -rw-r--r--
Added tag 0.175.3.15.0.4.0, S11.3SRU15.4 for changeset f2e0a2f2bfc0

Patch origin: in-house
Patch status: Solaris-specific; not suitable for upstream

This seems to be the only way to propagate these macros also
into apr-1-config.

--- build/apr_hints.m4	2013-10-14 12:03:08.000000000 -0700
+++ build/apr_hints.m4	2014-05-15 01:31:40.239384758 -0700
@@ -237,6 +237,7 @@
     *-solaris2*)
     	PLATOSVERS=`echo $host | sed 's/^.*solaris2.//'`
 	APR_ADDTO(CPPFLAGS, [-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT])
+	APR_ADDTO(CPPFLAGS, [-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64])
         if test $PLATOSVERS -ge 10; then
             APR_SETIFNULL(apr_lock_method, [USE_PROC_PTHREAD_SERIALIZE])
         else