audio/oss: Fix build on 14-CURRENT
As of dfff37765ce4ea4fd7db4d293b459dc84008f411 (1400010), struct device on 14-CURRENT was renamed to struct _device. This commit chases this change by adding a __FreeBSD_version CPP conditional. PR: 259275 Submitted by: cy Reported by: cy Reviewed by: crees Tested by: cy Approved by: crees MFH: 2021Q4 Differential Revision: https://reviews.freebsd.org/D32560
This commit is contained in:
parent
52febb3af6
commit
ff67375036
1 changed files with 15 additions and 3 deletions
|
@ -1,6 +1,18 @@
|
|||
--- kernel/OS/FreeBSD/wrapper/bsddefs.h.orig 2019-03-06 07:52:21 UTC
|
||||
+++ kernel/OS/FreeBSD/wrapper/bsddefs.h
|
||||
@@ -93,8 +93,8 @@ extern void oss_udelay (unsigned long t);
|
||||
--- kernel/OS/FreeBSD/wrapper/bsddefs.h.orig 2021-10-19 08:38:32.843953000 -0700
|
||||
+++ kernel/OS/FreeBSD/wrapper/bsddefs.h 2021-10-19 08:41:58.476795000 -0700
|
||||
@@ -32,7 +32,11 @@
|
||||
#endif
|
||||
extern int oss_get_uid (void);
|
||||
|
||||
+#if __FreeBSD_version > 1400009
|
||||
+typedef struct _device dev_info_t;
|
||||
+#else
|
||||
typedef struct device dev_info_t;
|
||||
+#endif
|
||||
typedef long long oss_int64_t; /* Signed 64 bit integer */
|
||||
typedef unsigned long long oss_uint64_t; /* Unsigned 64 bit integer */
|
||||
typedef unsigned long offset_t;
|
||||
@@ -93,8 +97,8 @@
|
||||
#ifdef _KERNEL
|
||||
#ifdef memset
|
||||
#undef memset
|
||||
|
|
Loading…
Reference in a new issue