diff options
-rw-r--r-- | audio/oss/files/patch-cmd-osspartysh-osspartysh.c | 12 | ||||
-rw-r--r-- | audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c | 18 |
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; |