diff options
author | Stanislav Sedov <stas@FreeBSD.org> | 2009-02-12 23:22:47 +0000 |
---|---|---|
committer | Stanislav Sedov <stas@FreeBSD.org> | 2009-02-12 23:22:47 +0000 |
commit | 9edb4ed3ddfa21b2e7172f5698645ed6f968ae04 (patch) | |
tree | 35cfc42f1a606367ed4223ada29dc5f6c7d59e44 /sysutils/fuser | |
parent | 4d824c6929a0394e7f0c9cb25bb037c36d42001e (diff) | |
download | ports-9edb4ed3ddfa21b2e7172f5698645ed6f968ae04.tar.gz ports-9edb4ed3ddfa21b2e7172f5698645ed6f968ae04.zip |
Notes
Diffstat (limited to 'sysutils/fuser')
-rw-r--r-- | sysutils/fuser/Makefile | 4 | ||||
-rw-r--r-- | sysutils/fuser/files/extra::patch-fuser.c | 32 |
2 files changed, 34 insertions, 2 deletions
diff --git a/sysutils/fuser/Makefile b/sysutils/fuser/Makefile index e086171adbbc..1d27fae59118 100644 --- a/sysutils/fuser/Makefile +++ b/sysutils/fuser/Makefile @@ -23,8 +23,8 @@ PLIST_FILES= bin/fuser .include <bsd.port.pre.mk> -.if ${OSVERSION} >= 800000 -BROKEN= does not compile +.if (${OSVERSION} > 800000) +EXTRA_PATCHES+= ${FILESDIR}/extra::patch-fuser.c .endif do-install: diff --git a/sysutils/fuser/files/extra::patch-fuser.c b/sysutils/fuser/files/extra::patch-fuser.c new file mode 100644 index 000000000000..116d45a105b5 --- /dev/null +++ b/sysutils/fuser/files/extra::patch-fuser.c @@ -0,0 +1,32 @@ +--- fuser.c.orig 2009-02-13 02:11:34.000000000 +0300 ++++ fuser.c 2009-02-13 02:19:21.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 +@@ -729,7 +731,7 @@ + return -1; + } + +- ret = KVM_READ(kd, dv.si_priv, &priv, sizeof(priv)); ++ ret = KVM_READ(kd, cdev2priv(&dv), &priv, sizeof(priv)); + if (ret != sizeof(priv)) { + warnx("can't read priv at %p\n", dev); + return -1; |