aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornaddy <naddy@FreeBSD.org>2007-03-10 08:46:28 +0800
committernaddy <naddy@FreeBSD.org>2007-03-10 08:46:28 +0800
commitde29cb45665806a2f814c1c6dffc066c90a11007 (patch)
tree92b5077f1d58f8d161979a527967a7047b15a1c7
parent381cde8da023389fe9840de00c54a2c43046eb85 (diff)
downloadfreebsd-ports-gnome-de29cb45665806a2f814c1c6dffc066c90a11007.tar.gz
freebsd-ports-gnome-de29cb45665806a2f814c1c6dffc066c90a11007.tar.zst
freebsd-ports-gnome-de29cb45665806a2f814c1c6dffc066c90a11007.zip
LP64 fix
-rw-r--r--sysutils/whowatch/Makefile1
-rw-r--r--sysutils/whowatch/files/patch-procinfo.c34
2 files changed, 35 insertions, 0 deletions
diff --git a/sysutils/whowatch/Makefile b/sysutils/whowatch/Makefile
index 1f9d99171c5e..4831ff4f8a20 100644
--- a/sysutils/whowatch/Makefile
+++ b/sysutils/whowatch/Makefile
@@ -7,6 +7,7 @@
PORTNAME= whowatch
PORTVERSION= 1.4
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://wizard.ae.krakow.pl/~mike/download/ \
${MASTER_SITE_PACKETSTORM}
diff --git a/sysutils/whowatch/files/patch-procinfo.c b/sysutils/whowatch/files/patch-procinfo.c
new file mode 100644
index 000000000000..1cc8a24e8d7d
--- /dev/null
+++ b/sysutils/whowatch/files/patch-procinfo.c
@@ -0,0 +1,34 @@
+
+$FreeBSD$
+
+--- procinfo.c.orig
++++ procinfo.c
+@@ -65,7 +65,7 @@
+ int fill_kinfo(struct kinfo_proc *info, int pid)
+ {
+ int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, pid };
+- int len = sizeof *info;
++ size_t len = sizeof *info;
+ if(sysctl(mib, 4, info, &len, 0, 0) == -1)
+ return -1;
+ return len?0:-1;
+@@ -124,7 +124,8 @@
+ int get_login_pid(char *tty)
+ {
+ int mib[4] = {CTL_KERN, KERN_PROC, KERN_PROC_TTY, 0};
+- int len, t, el, i, pid, cndt = -1, l;
++ int t, el, i, pid, cndt = -1, l;
++ size_t len;
+ struct kinfo_proc *info;
+ struct procinfo p;
+
+@@ -169,7 +170,8 @@
+ int get_all_info(struct kinfo_proc **info)
+ {
+ int mib[3] = { CTL_KERN, KERN_PROC, KERN_PROC_ALL };
+- int len, el;
++ int el;
++ size_t len;
+
+ if(sysctl(mib, 3, 0, &len, 0, 0) == -1)
+ return 0;