summaryrefslogtreecommitdiff
path: root/emulators/mame/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2019-10-17 10:18:37 +0000
committerwiz <wiz@pkgsrc.org>2019-10-17 10:18:37 +0000
commit86bb19481df1a1b13d2f2b6ffd2783206c6b621b (patch)
tree2b65d445f9d955e5536ee2ecdf8e683d0b1e3a99 /emulators/mame/patches
parentb8c2fd6c36423590de7ed911a6152d94678a1f50 (diff)
downloadpkgsrc-86bb19481df1a1b13d2f2b6ffd2783206c6b621b.tar.gz
mame: fix build on 9.99.14
Diffstat (limited to 'emulators/mame/patches')
-rw-r--r--emulators/mame/patches/patch-3rdparty_asio_include_asio_detail_impl_kqueue__reactor.ipp26
1 files changed, 26 insertions, 0 deletions
diff --git a/emulators/mame/patches/patch-3rdparty_asio_include_asio_detail_impl_kqueue__reactor.ipp b/emulators/mame/patches/patch-3rdparty_asio_include_asio_detail_impl_kqueue__reactor.ipp
new file mode 100644
index 00000000000..34169982667
--- /dev/null
+++ b/emulators/mame/patches/patch-3rdparty_asio_include_asio_detail_impl_kqueue__reactor.ipp
@@ -0,0 +1,26 @@
+$NetBSD: patch-3rdparty_asio_include_asio_detail_impl_kqueue__reactor.ipp,v 1.1 2019/10/17 10:18:37 wiz Exp $
+
+NetBSD 9.99.14 changed the type to be more compatible to other operating systems.
+
+--- 3rdparty/asio/include/asio/detail/impl/kqueue_reactor.ipp.orig 2019-08-02 19:05:18.000000000 +0000
++++ 3rdparty/asio/include/asio/detail/impl/kqueue_reactor.ipp
+@@ -16,6 +16,10 @@
+ # pragma once
+ #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
+
++#if defined(__NetBSD__)
++#include <sys/param.h>
++#endif
++
+ #include "asio/detail/config.hpp"
+
+ #if defined(ASIO_HAS_KQUEUE)
+@@ -27,7 +31,7 @@
+
+ #include "asio/detail/push_options.hpp"
+
+-#if defined(__NetBSD__)
++#if defined(__NetBSD__) && (__NetBSD_Version__ <= 999001400)
+ # define ASIO_KQUEUE_EV_SET(ev, ident, filt, flags, fflags, data, udata) \
+ EV_SET(ev, ident, filt, flags, fflags, data, \
+ reinterpret_cast<intptr_t>(static_cast<void*>(udata)))