pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/wxGTK30 wxGTK30: fix build on NetBSD 9.99.14+



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4cfab2e5c34d
branches:  trunk
changeset: 415935:4cfab2e5c34d
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Oct 16 20:43:14 2019 +0000

description:
wxGTK30: fix build on NetBSD 9.99.14+

diffstat:

 x11/wxGTK30/distinfo                                     |   4 +-
 x11/wxGTK30/patches/patch-src_unix_fswatcher__kqueue.cpp |  21 ++++++++++++---
 2 files changed, 18 insertions(+), 7 deletions(-)

diffs (58 lines):

diff -r 6ed95ac1ec06 -r 4cfab2e5c34d x11/wxGTK30/distinfo
--- a/x11/wxGTK30/distinfo      Wed Oct 16 20:32:04 2019 +0000
+++ b/x11/wxGTK30/distinfo      Wed Oct 16 20:43:14 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2018/08/16 12:26:49 wiz Exp $
+$NetBSD: distinfo,v 1.18 2019/10/16 20:43:14 wiz Exp $
 
 SHA1 (wxWidgets-3.0.4.tar.bz2) = 246561a73ec5b9a5a7aaaaed46b64515dc9039ab
 RMD160 (wxWidgets-3.0.4.tar.bz2) = 179bcd489aec0a56a7a2890be68ee718b87a1c7a
@@ -10,4 +10,4 @@
 SHA1 (patch-configure.in) = 420105dca608dcdcc6ee6a1e9b6da14049681a4e
 SHA1 (patch-src_tiff_configure) = 4bdb7b96231b4db0da3a0a1f7d8350ad4222080e
 SHA1 (patch-src_tiff_configure.ac) = de55f861e64fd0bbecc10086213dd98bd3b4f3ca
-SHA1 (patch-src_unix_fswatcher__kqueue.cpp) = 29c7887590b29dd53f9cf9ea1526f1c8d9465aed
+SHA1 (patch-src_unix_fswatcher__kqueue.cpp) = 6a8924975690854e9c162fed906b6ecca77874b5
diff -r 6ed95ac1ec06 -r 4cfab2e5c34d x11/wxGTK30/patches/patch-src_unix_fswatcher__kqueue.cpp
--- a/x11/wxGTK30/patches/patch-src_unix_fswatcher__kqueue.cpp  Wed Oct 16 20:32:04 2019 +0000
+++ b/x11/wxGTK30/patches/patch-src_unix_fswatcher__kqueue.cpp  Wed Oct 16 20:43:14 2019 +0000
@@ -1,15 +1,26 @@
-$NetBSD: patch-src_unix_fswatcher__kqueue.cpp,v 1.2 2018/08/16 11:46:25 wiz Exp $
+$NetBSD: patch-src_unix_fswatcher__kqueue.cpp,v 1.3 2019/10/16 20:43:14 wiz Exp $
 
 Fix compilation error on NetBSD
 https://trac.wxwidgets.org/ticket/18199
 
---- src/unix/fswatcher_kqueue.cpp.orig 2014-08-13 21:20:42.000000000 +0000
+--- src/unix/fswatcher_kqueue.cpp.orig 2018-03-07 16:55:38.000000000 +0000
 +++ src/unix/fswatcher_kqueue.cpp
-@@ -125,8 +125,13 @@ public:
+@@ -14,6 +14,10 @@
+     #pragma hdrstop
+ #endif
+ 
++#ifdef __NetBSD__
++#include <sys/param.h>
++#endif
++
+ #if wxUSE_FSWATCHER
+ 
+ #include "wx/fswatcher.h"
+@@ -125,8 +129,13 @@ public:
          struct kevent event;
          int action = EV_ADD | EV_ENABLE | EV_CLEAR | EV_ERROR;
          int flags = Watcher2NativeFlags(watch->GetFlags());
-+#ifdef __NetBSD__
++#if defined(__NetBSD__) && (__NetBSD_Version__ <= 999001400)
 +        EV_SET( &event, watch->GetFileDescriptor(), EVFILT_VNODE, action,
 +                flags, 0, (intptr_t)watch.get() );
 +#else
@@ -19,7 +30,7 @@
  
          // TODO more error conditions according to man
          // TODO best deal with the error here
-@@ -281,10 +286,11 @@ protected:
+@@ -281,10 +290,11 @@ protected:
  
          wxLogTrace(wxTRACE_FSWATCHER, "Event: ident=%d, filter=%d, flags=%u, "
                     "fflags=%u, data=%d, user_data=%p",



Home | Main Index | Thread Index | Old Index