head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.10 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.8 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.6 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.4 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.2 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q2:1.1.0.4 pkgsrc-2009Q2-base:1.1 pkgsrc-2009Q1:1.1.0.2 pkgsrc-2009Q1-base:1.1; locks; strict; comment @# @; 1.2 date 2009.09.22.13.17.30; author tnn; state dead; branches; next 1.1; 1.1 date 2009.01.05.09.58.36; author martin; state Exp; branches; next ; desc @@ 1.2 log @Send firefox3 on it's way to the happy hunting ground. @ text @$NetBSD: patch-ek,v 1.1 2009/01/05 09:58:36 martin Exp $ # Reported upstream as https://bugzilla.mozilla.org/show_bug.cgi?id=471179 --- nsprpub/pr/src/misc/prsystem.c.orig 2006-01-19 23:11:59.000000000 +0100 +++ nsprpub/pr/src/misc/prsystem.c 2008-12-26 13:01:50.000000000 +0100 @@@@ -290,6 +290,20 @@@@ PR_IMPLEMENT(PRUint64) PR_GetPhysicalMem long pageCount = sysconf(_SC_PHYS_PAGES); bytes = (PRUint64) pageSize * pageCount; +#elif defined(NETBSD) + + int mib[2]; + int rc; + uint64_t memSize; + size_t len = sizeof(memSize); + + mib[0] = CTL_HW; + mib[1] = HW_PHYSMEM64; + rc = sysctl( mib, 2, &memSize, &len, NULL, 0 ); + if ( -1 != rc ) { + bytes = memSize; + } + #elif defined(HPUX) struct pst_static info; @ 1.1 log @Fix a few more LP64 bit bugs (may be in dead code, but who knows) and fix the xptc call stubs for sparc64 so that tree views with a javascript data source (like history and about:config) now work. All changes already reported upstream. @ text @d1 1 a1 1 $NetBSD$ @