1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

Fix build on -CURRENT.

Reported by:	QAT
This commit is contained in:
Jung-uk Kim 2010-01-19 18:45:01 +00:00
parent 9ef95fe154
commit e7eda0c234
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=248163
2 changed files with 30 additions and 0 deletions

View File

@ -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"

View File

@ -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;