summaryrefslogtreecommitdiff
path: root/x11/qt5-qtbase
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-12-17 23:22:35 +0000
committerjoerg <joerg@pkgsrc.org>2013-12-17 23:22:35 +0000
commita77e4eaddda407093a08c37db2410d928417d822 (patch)
treee250424fa7b665049e27f53a9b9158324b25263f /x11/qt5-qtbase
parente747f393fc094ca4cbd4934569e9bbd2eafcfb82 (diff)
downloadpkgsrc-a77e4eaddda407093a08c37db2410d928417d822.tar.gz
Explicitly include unistd.h for getconf defines.
Diffstat (limited to 'x11/qt5-qtbase')
-rw-r--r--x11/qt5-qtbase/distinfo4
-rw-r--r--x11/qt5-qtbase/patches/patch-qtwebkit_Source_WTF_wtf_NumberOfCores.cpp16
2 files changed, 14 insertions, 6 deletions
diff --git a/x11/qt5-qtbase/distinfo b/x11/qt5-qtbase/distinfo
index 90c4b04989e..f4943155b59 100644
--- a/x11/qt5-qtbase/distinfo
+++ b/x11/qt5-qtbase/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2013/12/15 19:51:19 joerg Exp $
+$NetBSD: distinfo,v 1.4 2013/12/17 23:22:35 joerg Exp $
SHA1 (qt-everywhere-opensource-src-5.2.0.tar.xz) = 7d9d8cad4434bc200d9ed87b3c7cb39654a2f1b4
RMD160 (qt-everywhere-opensource-src-5.2.0.tar.xz) = b2dd68f622fa7ff271ef621a7c7f17f2ecf7be9d
@@ -57,7 +57,7 @@ SHA1 (patch-qtwebkit_Source_ThirdParty_gtest_include_gtest_internal_gtest-port.h
SHA1 (patch-qtwebkit_Source_WTF_WTF.pro) = 1273b662feaa30ba42cefc1f11fb8854e11405a9
SHA1 (patch-qtwebkit_Source_WTF_wtf_Assertions.cpp) = b56a5cf3a7f03976f78b7eeac801571aa4fa9142
SHA1 (patch-qtwebkit_Source_WTF_wtf_InlineASM.h) = f66cfe90357638d868f4c55bd3628305774bdc99
-SHA1 (patch-qtwebkit_Source_WTF_wtf_NumberOfCores.cpp) = 10c91530cb3d0bcf7dfd733224f92f768596da04
+SHA1 (patch-qtwebkit_Source_WTF_wtf_NumberOfCores.cpp) = b17efd2ba90f28f0184ab5f3f9ef69a72be3ac0f
SHA1 (patch-qtwebkit_Source_WTF_wtf_Platform.h) = a999f608962affebc99f55d93cede5a180b542a9
SHA1 (patch-qtwebkit_Source_WTF_wtf_RAMSize.cpp) = 4e7412a8eba669bdec436458229a998e782bedd3
SHA1 (patch-qtwebkit_Source_WTF_wtf_ThreadIdentifierDataPthreads.cpp) = 5d5a21dd636f0667219af916990740883478b651
diff --git a/x11/qt5-qtbase/patches/patch-qtwebkit_Source_WTF_wtf_NumberOfCores.cpp b/x11/qt5-qtbase/patches/patch-qtwebkit_Source_WTF_wtf_NumberOfCores.cpp
index 23c37ff3cf7..b9eb15db920 100644
--- a/x11/qt5-qtbase/patches/patch-qtwebkit_Source_WTF_wtf_NumberOfCores.cpp
+++ b/x11/qt5-qtbase/patches/patch-qtwebkit_Source_WTF_wtf_NumberOfCores.cpp
@@ -1,10 +1,18 @@
-$NetBSD: patch-qtwebkit_Source_WTF_wtf_NumberOfCores.cpp,v 1.1 2013/12/13 14:38:35 ryoon Exp $
+$NetBSD: patch-qtwebkit_Source_WTF_wtf_NumberOfCores.cpp,v 1.2 2013/12/17 23:22:35 joerg Exp $
* Add NetBSD support
---- qtwebkit/Source/WTF/wtf/NumberOfCores.cpp.orig 2013-11-27 01:01:21.000000000 +0000
+--- qtwebkit/Source/WTF/wtf/NumberOfCores.cpp.orig 2013-12-08 17:09:59.000000000 +0000
+++ qtwebkit/Source/WTF/wtf/NumberOfCores.cpp
-@@ -50,7 +50,7 @@ int numberOfProcessorCores()
+@@ -32,6 +32,7 @@
+ // data types defined in the former. See sysctl(3) and style(9).
+ #include <sys/types.h>
+ #include <sys/sysctl.h>
++#include <unistd.h>
+ #elif OS(LINUX) || OS(AIX) || OS(SOLARIS)
+ #include <unistd.h>
+ #elif OS(WINDOWS)
+@@ -50,7 +51,7 @@ int numberOfProcessorCores()
if (s_numberOfCores > 0)
return s_numberOfCores;
@@ -13,7 +21,7 @@ $NetBSD: patch-qtwebkit_Source_WTF_wtf_NumberOfCores.cpp,v 1.1 2013/12/13 14:38:
unsigned result;
size_t length = sizeof(result);
int name[] = {
-@@ -60,7 +60,7 @@ int numberOfProcessorCores()
+@@ -60,7 +61,7 @@ int numberOfProcessorCores()
int sysctlResult = sysctl(name, sizeof(name) / sizeof(int), &result, &length, 0, 0);
s_numberOfCores = sysctlResult < 0 ? defaultIfUnavailable : result;