aboutsummaryrefslogtreecommitdiffstats
path: root/audio/oss
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2010-01-20 02:45:01 +0800
committerjkim <jkim@FreeBSD.org>2010-01-20 02:45:01 +0800
commit578edf47f18ff8ec009c86d02e7545dab6262222 (patch)
tree6dc5f41f16fe48662ad2a5b5c2694b0e33196cdd /audio/oss
parenteda0b9e03481cb202f69a68ecfe221ef109a7da7 (diff)
downloadfreebsd-ports-gnome-578edf47f18ff8ec009c86d02e7545dab6262222.tar.gz
freebsd-ports-gnome-578edf47f18ff8ec009c86d02e7545dab6262222.tar.zst
freebsd-ports-gnome-578edf47f18ff8ec009c86d02e7545dab6262222.zip
Fix build on -CURRENT.
Reported by: QAT
Diffstat (limited to 'audio/oss')
-rw-r--r--audio/oss/files/patch-cmd-osspartysh-osspartysh.c12
-rw-r--r--audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c18
2 files changed, 30 insertions, 0 deletions
diff --git a/audio/oss/files/patch-cmd-osspartysh-osspartysh.c b/audio/oss/files/patch-cmd-osspartysh-osspartysh.c
new file mode 100644
index 000000000000..b936e2e82570
--- /dev/null
+++ b/audio/oss/files/patch-cmd-osspartysh-osspartysh.c
@@ -0,0 +1,12 @@
+--- cmd/osspartysh/osspartysh.c.orig 2009-11-13 10:20:53.000000000 -0500
++++ cmd/osspartysh/osspartysh.c 2010-01-19 13:31:23.000000000 -0500
+@@ -45,8 +45,8 @@
+ #include <libutil.h>
+ #else
+ #include <pty.h>
+-#endif
+ #include <utmp.h>
++#endif
+ #include <errno.h>
+
+ #define PARTYSH_MAGIC "ParTySH"
diff --git a/audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c b/audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c
new file mode 100644
index 000000000000..2c367ca71cd9
--- /dev/null
+++ b/audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c
@@ -0,0 +1,18 @@
+--- kernel/OS/FreeBSD/os_freebsd.c.orig 2009-11-13 10:20:53.000000000 -0500
++++ kernel/OS/FreeBSD/os_freebsd.c 2010-01-19 12:58:43.000000000 -0500
+@@ -902,9 +902,15 @@
+ return ev.revents;
+ }
+
++#if defined(D_VERSION_03) && (D_VERSION == D_VERSION_03)
++static int
++oss_mmap (struct cdev *bsd_dev, vm_ooffset_t offset, vm_paddr_t * paddr,
++ int nprot, vm_memattr_t *memattr)
++#else
+ static int
+ oss_mmap (struct cdev *bsd_dev, vm_offset_t offset, vm_paddr_t * paddr,
+ int nprot)
++#endif
+ {
+ int retval;
+ int dev;