pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/apachetop Adjust for kqueue interface change on Ne...
details: https://anonhg.NetBSD.org/pkgsrc/rev/275180d7a60b
branches: trunk
changeset: 406449:275180d7a60b
user: joerg <joerg%pkgsrc.org@localhost>
date: Sat Dec 21 23:51:30 2019 +0000
description:
Adjust for kqueue interface change on NetBSD.
diffstat:
www/apachetop/distinfo | 3 ++-
www/apachetop/patches/patch-src_apachetop.cc | 24 ++++++++++++++++++++++++
2 files changed, 26 insertions(+), 1 deletions(-)
diffs (40 lines):
diff -r 55028dd0358e -r 275180d7a60b www/apachetop/distinfo
--- a/www/apachetop/distinfo Sat Dec 21 23:48:26 2019 +0000
+++ b/www/apachetop/distinfo Sat Dec 21 23:51:30 2019 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.6 2018/05/08 08:17:36 wen Exp $
+$NetBSD: distinfo,v 1.7 2019/12/21 23:51:30 joerg Exp $
SHA1 (0.18.4.zip) = 911b6a9bac7d320ee1f2dc3e4a8f8afd34a97fd4
RMD160 (0.18.4.zip) = 09f5ed68c0584d5e20deae4bf1b1831e965cb671
SHA512 (0.18.4.zip) = 91d5cadbe5a7ffc1bdd4999e5986ab55ad770caf6f2d19811b322d9e5af42b7f40a16d4b05c05c9d1d59ac80392ca90ba03dddb2a69e08d2d8243f9ef58158b7
Size (0.18.4.zip) = 55053 bytes
+SHA1 (patch-src_apachetop.cc) = be9e0ac8a8e7f70a763a74f1b5a1991ec2df6a1d
diff -r 55028dd0358e -r 275180d7a60b www/apachetop/patches/patch-src_apachetop.cc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/apachetop/patches/patch-src_apachetop.cc Sat Dec 21 23:51:30 2019 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_apachetop.cc,v 1.1 2019/12/21 23:51:30 joerg Exp $
+
+--- src/apachetop.cc.orig 2019-12-21 18:35:00.053790104 +0000
++++ src/apachetop.cc
+@@ -4,6 +4,10 @@
+ */
+ #include "apachetop.h"
+
++#ifdef __NetBSD__
++#include <sys/param.h>
++#endif
++
+ /* die and report why */
+ #define DIE(msg) fprintf(stderr, "%s: %s\n", msg, strerror(errno)); catchsig(1);
+ /* die with no strerror */
+@@ -1023,7 +1027,7 @@ int new_file(const char *filename, bool
+
+ #if (POLLING_METHOD == USING_KQUEUE)
+ /* add into kqueue */
+-#ifdef __NetBSD__
++#if defined(__NetBSD__) && (__NetBSD_Version__ - 0 < 999001500)
+ EV_SET(&kev, fd, EVFILT_VNODE,
+ EV_ADD | EV_ENABLE | EV_CLEAR,
+ NOTE_WRITE | NOTE_DELETE | NOTE_RENAME, 0, (intptr_t)this_file);
Home |
Main Index |
Thread Index |
Old Index