diff options
author | stas <stas@FreeBSD.org> | 2009-02-13 07:22:47 +0800 |
---|---|---|
committer | stas <stas@FreeBSD.org> | 2009-02-13 07:22:47 +0800 |
commit | 986f7328d19f043188085bb7a2b4e2a07a27ba3b (patch) | |
tree | 5ee9234d39d837d8121131eb4b5c4b6a82acfe36 | |
parent | c535f161288faca38594c66c3615401f378b7b29 (diff) | |
download | freebsd-ports-gnome-986f7328d19f043188085bb7a2b4e2a07a27ba3b.tar.gz freebsd-ports-gnome-986f7328d19f043188085bb7a2b4e2a07a27ba3b.tar.zst freebsd-ports-gnome-986f7328d19f043188085bb7a2b4e2a07a27ba3b.zip |
- Fix on current.
-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; |