aboutsummaryrefslogtreecommitdiff
path: root/www/chromium
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2015-02-20 23:24:23 +0000
committerRene Ladan <rene@FreeBSD.org>2015-02-20 23:24:23 +0000
commit6fe46c30638e31e38f14a25bc33f42204d5b798e (patch)
tree6211c051931047086976c3bbc55d3f1bddeb5a2f /www/chromium
parentfd26b4ca89fa56d789c430333dd0052487760101 (diff)
downloadports-6fe46c30638e31e38f14a25bc33f42204d5b798e.tar.gz
ports-6fe46c30638e31e38f14a25bc33f42204d5b798e.zip
Notes
Diffstat (limited to 'www/chromium')
-rw-r--r--www/chromium/Makefile1
-rw-r--r--www/chromium/files/patch-v8__src__base__platform__platform-posix.cc30
2 files changed, 26 insertions, 5 deletions
diff --git a/www/chromium/Makefile b/www/chromium/Makefile
index b5fd2f36b75f..0514ade759b2 100644
--- a/www/chromium/Makefile
+++ b/www/chromium/Makefile
@@ -3,6 +3,7 @@
PORTNAME= chromium
PORTVERSION= 40.0.2214.111
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://commondatastorage.googleapis.com/chromium-browser-official/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
diff --git a/www/chromium/files/patch-v8__src__base__platform__platform-posix.cc b/www/chromium/files/patch-v8__src__base__platform__platform-posix.cc
index f95959d1b574..215e4edcbd20 100644
--- a/www/chromium/files/patch-v8__src__base__platform__platform-posix.cc
+++ b/www/chromium/files/patch-v8__src__base__platform__platform-posix.cc
@@ -1,17 +1,37 @@
--- v8/src/base/platform/platform-posix.cc.orig 2015-01-27 03:22:59.000000000 +0100
+++ v8/src/base/platform/platform-posix.cc 2015-02-06 18:41:53.881294389 +0100
-@@ -259,6 +259,14 @@
+@@ -54,6 +54,15 @@
+ #include <sys/prctl.h> // NOLINT, for prctl
+ #endif
+
++#if V8_OS_FREEBSD && !defined(__DragonFly__)
++#include <sys/param.h> // for __FreeBSD_version
++#include <sys/thr.h> // for thr_self
++#endif
++
++#if V8_OS_NETBSD
++#include <lwp.h> // for _lwp_self
++#endif
++
+ #if !V8_OS_NACL
+ #include <sys/syscall.h>
+ #endif
+@@ -259,6 +268,18 @@ int OS::GetCurrentThreadId() {
return static_cast<int>(syscall(__NR_gettid));
#elif V8_OS_ANDROID
return static_cast<int>(gettid());
-+#elif V8_OS_FREEBSD
-+# ifdef __DragonFly__
++#elif V8_OS_DRAGONFLYBSD || defined(__DragonFly__)
+ return static_cast<int>(lwp_gettid());
-+# elif __FreeBSD_version__ < 900031
-+ return 0; /* ! */
++#elif V8_OS_FREEBSD
++# if __FreeBSD_version < 900031
++ long lwpid;
++ thr_self(&lwpid);
++ return static_cast<int>(lwpid);
+# else
+ return static_cast<int>(pthread_getthreadid_np());
+# endif
++#elif V8_OS_NETBSD
++ return static_cast<int>(_lwp_self());
#else
return static_cast<int>(pthread_self());
#endif