summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>1999-05-19 00:40:28 +0000
committerwtc%netscape.com <devnull@localhost>1999-05-19 00:40:28 +0000
commita9a702ec4120438d5721df28bcc3db078437c25c (patch)
tree33d13bebaec66bfeee1d7ede8cef8af8a0eaa0a4
parent1218cef7b833ef24a2744f58745948b971c523bb (diff)
downloadnspr-hg-a9a702ec4120438d5721df28bcc3db078437c25c.tar.gz
Bugzilla bug #4761: define _LARGEFILE64_SOURCE explicitly if we are
on Solaris 2.6 or 2.7 and using gcc. Thanks to vdemarco@novazen.com and mcafee@netscape.com for reporting this problem.
-rw-r--r--config/SunOS5.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/SunOS5.mk b/config/SunOS5.mk
index f91ba10e..557376b3 100644
--- a/config/SunOS5.mk
+++ b/config/SunOS5.mk
@@ -106,6 +106,16 @@ ifeq (,$(filter-out 5.3 5.4,$(OS_RELEASE)))
OS_DEFINES += -D_PR_NO_LARGE_FILES
else
OS_DEFINES += -D_PR_HAVE_OFF64_T
+# The lfcompile64(5) man page on Solaris 2.6 says:
+# For applications that do not wish to conform to the POSIX or
+# X/Open specifications, the 64-bit transitional interfaces
+# are available by default. No compile-time flags need to be
+# set.
+# But gcc 2.7.2.x fails to define _LARGEFILE64_SOURCE by default.
+# The native compiler, gcc 2.8.x, and egcs don't have this problem.
+ifdef NS_USE_GCC
+OS_DEFINES += -D_LARGEFILE64_SOURCE
+endif
endif
endif