Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Dec 2019 13:36:50 +0000 (UTC)
From:      Chris Rees <crees@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r520805 - in head/audio/oss: . files
Message-ID:  <201912241336.xBODaoNA038444@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: crees
Date: Tue Dec 24 13:36:50 2019
New Revision: 520805
URL: https://svnweb.freebsd.org/changeset/ports/520805

Log:
  audio/oss: Silence further compiler warning; perhaps this will help.

Modified:
  head/audio/oss/Makefile
  head/audio/oss/files/patch-kernel_OS_FreeBSD_os__freebsd.c

Modified: head/audio/oss/Makefile
==============================================================================
--- head/audio/oss/Makefile	Tue Dec 24 13:16:37 2019	(r520804)
+++ head/audio/oss/Makefile	Tue Dec 24 13:36:50 2019	(r520805)
@@ -65,6 +65,12 @@ post-patch:
 	    -name make.local -or -name soundoff -or -name soundon | \
 	    ${XARGS} ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g'
 
+pre-build:
+	${MAKE_CMD} -C ${BUILD_WRKSRC}/kernel/OS/FreeBSD \
+		-f /usr/share/mk/bsd.kmod.mk \
+		KMOD=osscore SRCS=os_freebsd.c \
+		device_if.h bus_if.h pci_if.h
+
 do-install:
 	${INSTALL_PROGRAM} ${PROTO_BINDIR}/* ${STAGEDIR}${PREFIX}/bin/
 # @${ECHO_CMD} "OSSLIBDIR=${PREFIX}/lib/oss" > ${PROTO_ETCDIR}/oss.conf

Modified: head/audio/oss/files/patch-kernel_OS_FreeBSD_os__freebsd.c
==============================================================================
--- head/audio/oss/files/patch-kernel_OS_FreeBSD_os__freebsd.c	Tue Dec 24 13:16:37 2019	(r520804)
+++ head/audio/oss/files/patch-kernel_OS_FreeBSD_os__freebsd.c	Tue Dec 24 13:36:50 2019	(r520805)
@@ -1,10 +1,11 @@
 --- kernel/OS/FreeBSD/os_freebsd.c.orig	2019-03-06 07:52:21 UTC
 +++ kernel/OS/FreeBSD/os_freebsd.c
-@@ -15,6 +15,8 @@
+@@ -15,6 +15,9 @@
  #include "oss_config.h"
  #include "midi_core.h"
  #include <oss_pci.h>
 +#include <sys/param.h>
++#include <sys/bus.h>
 +#include <sys/types.h>
  #include <sys/conf.h>
  #include <sys/module.h>
@@ -17,7 +18,7 @@
  
  /* Function prototypes */
  static d_open_t oss_open;
-@@ -920,15 +923,9 @@ oss_poll (struct cdev *bsd_dev, int events, struct thr
+@@ -920,15 +924,9 @@ oss_poll (struct cdev *bsd_dev, int events, struct thr
    return ev.revents;
  }
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912241336.xBODaoNA038444>