summaryrefslogtreecommitdiff
path: root/sysutils/fuser/files/extra::patch-fuser.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-11-28 09:19:01 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-11-28 09:19:01 +0000
commit127f0f78f6f797eb8052ae373c36efecfb32d279 (patch)
tree3446bfabe3f012c4d2acba7a37443627e8b6bf0a /sysutils/fuser/files/extra::patch-fuser.c
parent- Update to 1.12 (diff)
2012-11-27 graphics/morpheus: Depends on the expired gtkglarea
2012-11-27 devel/jakarta-commons-chain: Depends on the expired devel/portlet-api 2012-11-27 math/p5-Math-LinearCombination: Depends on the expired p5-Class-Field 2012-11-26 x11/padkey: No more public distfiles 2012-11-26 japanese/gicq: No more public distfiles and development ceased 2012-11-26 www/momspider: No more public distfiles 2012-11-26 japanese/perl5: Recent perl supports correctly japanese, consider using them 2012-11-26 sysutils/fuser: No more public distfiles 2012-11-26 textproc/ascii2pdf: No more public distfiles Feature safe: yes
Notes
Notes: svn path=/head/; revision=307894
Diffstat (limited to 'sysutils/fuser/files/extra::patch-fuser.c')
-rw-r--r--sysutils/fuser/files/extra::patch-fuser.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/sysutils/fuser/files/extra::patch-fuser.c b/sysutils/fuser/files/extra::patch-fuser.c
deleted file mode 100644
index 5ada9fcd0379..000000000000
--- a/sysutils/fuser/files/extra::patch-fuser.c
+++ /dev/null
@@ -1,45 +0,0 @@
---- 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 @@
- */
-
- #include <stdlib.h>
-+#include <stddef.h>
- #include <unistd.h>
- #include <stdio.h>
- #include <string.h>
-@@ -88,9 +89,10 @@
- #include <sys/filedesc.h>
- #include <sys/queue.h>
- #include <sys/tty.h>
--#define _KERNEL
--#include <sys/conf.h>
-+#define _WANT_FILE
- #include <sys/file.h>
-+#include <sys/conf.h>
-+#define _KERNEL
- #include <fs/devfs/devfs.h>
- #include <fs/devfs/devfs_int.h>
- #undef _KERNEL
-@@ -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(dev), &priv, sizeof(priv));
- if (ret != sizeof(priv)) {
- warnx("can't read priv at %p\n", dev);
- return -1;