aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2009-02-12 23:36:01 +0000
committerStanislav Sedov <stas@FreeBSD.org>2009-02-12 23:36:01 +0000
commitc450fb64ed8aaa702c5e2629f6cbbbfc3d19af7b (patch)
treee78e6ae1b12d734f2fa72c07b1ebbcf484d0a984 /sysutils
parenta1ad272595693463d28744a4f0d8785d935c2043 (diff)
downloadports-c450fb64ed8aaa702c5e2629f6cbbbfc3d19af7b.tar.gz
ports-c450fb64ed8aaa702c5e2629f6cbbbfc3d19af7b.zip
Notes
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/fuser/Makefile4
-rw-r--r--sysutils/fuser/files/extra::patch-fuser.c25
-rw-r--r--sysutils/fuser/files/extra::patch-fuser.h11
3 files changed, 33 insertions, 7 deletions
diff --git a/sysutils/fuser/Makefile b/sysutils/fuser/Makefile
index 1d27fae59118..24302731188e 100644
--- a/sysutils/fuser/Makefile
+++ b/sysutils/fuser/Makefile
@@ -7,6 +7,7 @@
PORTNAME= fuser
PORTVERSION= 1142334561
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://mbsd.msk.ru/dist/
@@ -24,7 +25,8 @@ PLIST_FILES= bin/fuser
.include <bsd.port.pre.mk>
.if (${OSVERSION} > 800000)
-EXTRA_PATCHES+= ${FILESDIR}/extra::patch-fuser.c
+EXTRA_PATCHES+= ${FILESDIR}/extra::patch-fuser.c \
+ ${FILESDIR}/extra::patch-fuser.h
.endif
do-install:
diff --git a/sysutils/fuser/files/extra::patch-fuser.c b/sysutils/fuser/files/extra::patch-fuser.c
index 116d45a105b5..5ada9fcd0379 100644
--- a/sysutils/fuser/files/extra::patch-fuser.c
+++ b/sysutils/fuser/files/extra::patch-fuser.c
@@ -1,5 +1,5 @@
---- fuser.c.orig 2009-02-13 02:11:34.000000000 +0300
-+++ fuser.c 2009-02-13 02:19:21.000000000 +0300
+--- fuser.c.orig 2006-03-14 14:07:08.000000000 +0300
++++ fuser.c 2009-02-13 02:33:58.000000000 +0300
@@ -65,6 +65,7 @@
*/
@@ -21,12 +21,25 @@
#include <fs/devfs/devfs.h>
#include <fs/devfs/devfs_int.h>
#undef _KERNEL
-@@ -729,7 +731,7 @@
- return -1;
- }
+@@ -717,19 +719,12 @@
+ */
+ dev_t
+ dev2udev(dev)
+- const struct cdev *dev;
++ struct cdev *dev;
+ {
+- struct cdev dv;
+ struct cdev_priv priv;
+ int ret;
+- ret = KVM_READ(kd, dev, &dv, sizeof(struct cdev));
+- if (ret != sizeof(struct cdev)) {
+- warnx("can't read cdev at %p\n", dev);
+- return -1;
+- }
+-
- ret = KVM_READ(kd, dv.si_priv, &priv, sizeof(priv));
-+ ret = KVM_READ(kd, cdev2priv(&dv), &priv, sizeof(priv));
++ ret = KVM_READ(kd, cdev2priv(dev), &priv, sizeof(priv));
if (ret != sizeof(priv)) {
warnx("can't read priv at %p\n", dev);
return -1;
diff --git a/sysutils/fuser/files/extra::patch-fuser.h b/sysutils/fuser/files/extra::patch-fuser.h
new file mode 100644
index 000000000000..a823ffa2ab60
--- /dev/null
+++ b/sysutils/fuser/files/extra::patch-fuser.h
@@ -0,0 +1,11 @@
+--- fuser.h.orig 2009-02-13 02:34:32.000000000 +0300
++++ fuser.h 2009-02-13 02:34:43.000000000 +0300
+@@ -54,7 +54,7 @@
+ #endif
+
+ /* Prototypes */
+-dev_t dev2udev __P((const struct cdev *dev));
++dev_t dev2udev __P((struct cdev *dev));
+ int isofs_filestat __P((const vnode_t *vp, finfo_t *fsp));
+ int msdosfs_filestat __P((const vnode_t *vp, finfo_t *fsp));
+ int ufs_filestat __P((const vnode_t *vp, finfo_t *fsp));