pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/whowatch Correct build failure of whowatch on...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0174bfc805dc
branches:  trunk
changeset: 364383:0174bfc805dc
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Fri Jun 23 18:57:13 2017 +0000

description:
Correct build failure of whowatch on NetBSD 8.99.1

Address <sys/user.h> removal fallout.

diffstat:

 sysutils/whowatch/distinfo                 |   4 ++--
 sysutils/whowatch/patches/patch-proctree.c |  17 +++++++++++++++--
 2 files changed, 17 insertions(+), 4 deletions(-)

diffs (45 lines):

diff -r 815e268842a7 -r 0174bfc805dc sysutils/whowatch/distinfo
--- a/sysutils/whowatch/distinfo        Fri Jun 23 18:25:12 2017 +0000
+++ b/sysutils/whowatch/distinfo        Fri Jun 23 18:57:13 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2015/11/04 01:32:38 agc Exp $
+$NetBSD: distinfo,v 1.8 2017/06/23 18:57:13 kamil Exp $
 
 SHA1 (whowatch-1.4.tar.gz) = 0d60c8ddb56b9bf9d2f3e1452832ccb2c862ff0c
 RMD160 (whowatch-1.4.tar.gz) = da2ee1d52e2a1d5292713259e66b4e7dd39b8dfd
@@ -9,4 +9,4 @@
 SHA1 (patch-ac) = 9482d1b1759858a83b1efeaa5fc9dd9ec49043c7
 SHA1 (patch-ad) = 41a9e710b8bbe427c715da5d82e77bf32a2f7a34
 SHA1 (patch-ae) = ebb4f046df6ce950a320216f2d9f5238340a10b1
-SHA1 (patch-proctree.c) = 54bd828dac7f3f6dfd51f869e812e0c5a3a989fd
+SHA1 (patch-proctree.c) = 9357a2b6e9a67c80f413921491a47b1a82f0e0a7
diff -r 815e268842a7 -r 0174bfc805dc sysutils/whowatch/patches/patch-proctree.c
--- a/sysutils/whowatch/patches/patch-proctree.c        Fri Jun 23 18:25:12 2017 +0000
+++ b/sysutils/whowatch/patches/patch-proctree.c        Fri Jun 23 18:57:13 2017 +0000
@@ -1,11 +1,24 @@
-$NetBSD: patch-proctree.c,v 1.1 2012/08/08 18:37:07 marino Exp $
+$NetBSD: patch-proctree.c,v 1.2 2017/06/23 18:57:13 kamil Exp $
 
 Add DragonFly support (kernel proc can return pid of -1, skip)
 kinfo structure is unique on DragonFly
 
+<sys/user.h> is freebsdism in this usage-context, it's now absent in NetBSD 8.99.1
+
 --- proctree.c.orig    2000-06-06 09:03:28.000000000 +0000
 +++ proctree.c
-@@ -170,8 +170,14 @@ int update_tree(void del(void*))
+@@ -16,8 +16,10 @@
+ #ifdef HAVE_PROCESS_SYSCTL
+ #include <sys/param.h>
+ #include <sys/sysctl.h>
++#if defined(__FreeBSD__) || defined(__DragonFly__)
+ #include <sys/user.h>
+ #endif
++#endif
+ 
+ #include "proctree.h"
+ 
+@@ -170,8 +172,14 @@ int update_tree(void del(void*))
  #ifdef HAVE_PROCESS_SYSCTL
        el = get_all_info(&pi);
        for(i = 0; i < el; i++) {



Home | Main Index | Thread Index | Old Index