pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/46622 (pkgsrc-2012Q1 xulrunner-11.0nb1 does not compile on NetBSD 4.0)
The following reply was made to PR pkg/46622; it has been noted by GNATS.
From: Wolfgang Stukenbrock <wolfgang.stukenbrock%nagler-company.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: tnn%NetBSD.org@localhost, pkg-manager%NetBSD.org@localhost,
pkgsrc-bugs%NetBSD.org@localhost,
gnats-admin%NetBSD.org@localhost, hauke%NetBSD.org@localhost
Subject: Re: pkg/46622 (pkgsrc-2012Q1 xulrunner-11.0nb1 does not compile on
NetBSD 4.0)
Date: Sun, 24 Jun 2012 16:29:23 +0200
Hi again,
here is a patch for the problem.
It returns the same value aus if the sysconf() call failed and is equal
to a simular workaround found in ipc/chronium/src/base/sys_info_posix.cc.
--- js/src/jslock.cpp.orig 2012-06-24 15:07:53.000000000 +0200
+++ js/src/jslock.cpp 2012-06-24 15:08:36.000000000 +0200
@@ -322,8 +322,12 @@
GetSystemInfo(&sysinfo);
ncpus = unsigned(sysinfo.dwNumberOfProcessors);
# else
+# ifdef _SC_NPROCESSORS_ONLN
long n = sysconf(_SC_NPROCESSORS_ONLN);
ncpus = (n > 0) ? unsigned(n) : 1;
+# else
+ ncpus = 1;
+# endif
# endif
}
return ncpus;
hauke%NetBSD.org@localhost wrote:
> Synopsis: pkgsrc-2012Q1 xulrunner-11.0nb1 does not compile on NetBSD 4.0
>
> Responsible-Changed-From-To: pkg-manager->tnn
> Responsible-Changed-By: hauke%NetBSD.org@localhost
> Responsible-Changed-When: Fri, 22 Jun 2012 19:48:37 +0000
> Responsible-Changed-Why:
> Over to maintainer.
>
>
>
>
>
Home |
Main Index |
Thread Index |
Old Index