diff options
author | ryoon <ryoon@pkgsrc.org> | 2016-01-30 00:34:10 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2016-01-30 00:34:10 +0000 |
commit | 068263411318974b7268f84c9a4a6b9874f4a2b4 (patch) | |
tree | 79dee3e1f6b5beac12db46afb18f21d3266376a4 /www/firefox | |
parent | acd4dece1e749eee93e4a9bdf54eb58997e19379 (diff) | |
download | pkgsrc-068263411318974b7268f84c9a4a6b9874f4a2b4.tar.gz |
Fix build under netbsd-7, PR pkg/50721.
Diffstat (limited to 'www/firefox')
-rw-r--r-- | www/firefox/distinfo | 3 | ||||
-rw-r--r-- | www/firefox/patches/patch-ipc_chromium_src_base_message__pump__libevent.cc | 26 |
2 files changed, 28 insertions, 1 deletions
diff --git a/www/firefox/distinfo b/www/firefox/distinfo index 108bb20102a..7f3aa16780f 100644 --- a/www/firefox/distinfo +++ b/www/firefox/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.233 2016/01/28 06:48:50 ryoon Exp $ +$NetBSD: distinfo,v 1.234 2016/01/30 00:34:10 ryoon Exp $ SHA1 (firefox-44.0.source.tar.xz) = 47189b0a15087dd8f27999f5d920ad204fde8dca RMD160 (firefox-44.0.source.tar.xz) = 7942b5a565f2b2e50a5d38c9f88dc30640a162fd @@ -49,6 +49,7 @@ SHA1 (patch-ipc_chromium_Makefile.in) = edd85b79cd3879f7595b932442bb0e93505d5506 SHA1 (patch-ipc_chromium_src_base_atomicops.h) = 24b63a6e51d9ab27f2788ee02f2ffa7e1c36f29a SHA1 (patch-ipc_chromium_src_base_file__util__posix.cc) = 70772ab2a474b7d3d15cf401c636ca843cfe2034 SHA1 (patch-ipc_chromium_src_base_message__loop.cc) = 16158489773bbcba35e224d30bebace0c93599ae +SHA1 (patch-ipc_chromium_src_base_message__pump__libevent.cc) = 28578aa6cdc739b5265e4b4e0302c8e97a759ecf SHA1 (patch-ipc_chromium_src_base_platform__thread.h) = e6d7ac39a8b2a1b232638f7671e8530acfed0b97 SHA1 (patch-ipc_chromium_src_base_platform__thread__posix.cc) = ff1371ffb84abf2d2adcf25e66502943992d5109 SHA1 (patch-ipc_chromium_src_base_process__util.h) = 4b24c3467866a601d68bb83f44e5fd38fb27188d diff --git a/www/firefox/patches/patch-ipc_chromium_src_base_message__pump__libevent.cc b/www/firefox/patches/patch-ipc_chromium_src_base_message__pump__libevent.cc new file mode 100644 index 00000000000..3d83e2d9b30 --- /dev/null +++ b/www/firefox/patches/patch-ipc_chromium_src_base_message__pump__libevent.cc @@ -0,0 +1,26 @@ +$NetBSD: patch-ipc_chromium_src_base_message__pump__libevent.cc,v 1.5 2016/01/30 00:34:10 ryoon Exp $ + +--- ipc/chromium/src/base/message_pump_libevent.cc.orig 2016-01-23 23:23:38.000000000 +0000 ++++ ipc/chromium/src/base/message_pump_libevent.cc +@@ -18,8 +18,13 @@ + #include "third_party/libevent/event.h" + #include "mozilla/UniquePtr.h" + ++#if defined(__NetBSD__) ++#include <sys/param.h> ++#endif ++ + // This macro checks that the _EVENT_SIZEOF_* constants defined in + // ipc/chromiume/src/third_party/<platform>/event2/event-config.h are correct. ++#if defined(__NetBSD__) && (__NetBSD_Version__ <= 700000000) + #define CHECK_EVENT_SIZEOF(TYPE, type) \ + static_assert(_EVENT_SIZEOF_##TYPE == sizeof(type), \ + "bad _EVENT_SIZEOF_"#TYPE); +@@ -30,6 +35,7 @@ CHECK_EVENT_SIZEOF(PTHREAD_T, pthread_t) + CHECK_EVENT_SIZEOF(SHORT, short); + CHECK_EVENT_SIZEOF(SIZE_T, size_t); + CHECK_EVENT_SIZEOF(VOID_P, void*); ++#endif + + // Lifecycle of struct event + // Libevent uses two main data structures: |