pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www/apachetop
Module Name: pkgsrc
Committed By: joerg
Date: Sat Dec 21 23:51:30 UTC 2019
Modified Files:
pkgsrc/www/apachetop: distinfo
Added Files:
pkgsrc/www/apachetop/patches: patch-src_apachetop.cc
Log Message:
Adjust for kqueue interface change on NetBSD.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/www/apachetop/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/www/apachetop/patches/patch-src_apachetop.cc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/www/apachetop/distinfo
diff -u pkgsrc/www/apachetop/distinfo:1.6 pkgsrc/www/apachetop/distinfo:1.7
--- pkgsrc/www/apachetop/distinfo:1.6 Tue May 8 08:17:36 2018
+++ pkgsrc/www/apachetop/distinfo Sat Dec 21 23:51:30 2019
@@ -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
Added files:
Index: pkgsrc/www/apachetop/patches/patch-src_apachetop.cc
diff -u /dev/null pkgsrc/www/apachetop/patches/patch-src_apachetop.cc:1.1
--- /dev/null Sat Dec 21 23:51:30 2019
+++ pkgsrc/www/apachetop/patches/patch-src_apachetop.cc Sat Dec 21 23:51:30 2019
@@ -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