From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 39D521F531 for ; Mon, 10 Aug 2020 12:17:40 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1k56kA-00018s-AO; Mon, 10 Aug 2020 12:17:34 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k56k8-00018j-Oc for sox-devel@lists.sourceforge.net; Mon, 10 Aug 2020 12:17:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-Id: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=t/kwYaMqwPlWr+EViSj8L0OXZzPydtdEnpyxp0svFhg=; b=D3KO+paB5EB7tGpmjCv3eKxVr/ slG1r3L2043EfJ3zy389MMAyCgMU5Eqg8KbHIJEYw9/VhSS103K9Ft91kXhvdM79PDLQllnZAGDsq LNC8xwe1WPTeNOLSmyeMfuj2O+JeS7ZlBVjVvHGEw0IloiasUZXT4bU0+QEL8sIKBTSs=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:To:From: Sender:Reply-To:Cc:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=t/kwYaMqwPlWr+EViSj8L0OXZzPydtdEnpyxp0svFhg=; b=X s7VaX7wZOl1yYD5HKCz94+T7j1zAK8uPkR9gWighIYsHgg0uO3YiSG/kUM3rz34fFO1xVTQubb3FG 8ubV7Dy8DxQm19dIJ6xkdohVQNMCYLmjT8brcY3/wca4ii/LOPGQ1qD3ljeXDJscUfwMXuUy5FWpv zQOrfkZMq8ZZBsQ0=; Received: from [81.2.72.234] (helo=unicorn.mansr.com) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1k56k4-00FTyC-FS for sox-devel@lists.sourceforge.net; Mon, 10 Aug 2020 12:17:32 +0000 Received: from raven.mansr.com (raven.mansr.com [IPv6:2001:8b0:ca0d:8d8e::3]) by unicorn.mansr.com (Postfix) with ESMTPS id 1927915360 for ; Mon, 10 Aug 2020 13:17:12 +0100 (BST) Received: by raven.mansr.com (Postfix, from userid 51770) id 0A51821A6F2; Mon, 10 Aug 2020 13:17:12 +0100 (BST) From: Mans Rullgard To: sox-devel@lists.sourceforge.net Date: Mon, 10 Aug 2020 13:17:07 +0100 Message-Id: <20200810121707.29623-1-mans@mansr.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-Headers-End: 1k56k4-00FTyC-FS Subject: [PATCH] oss: remove check for machine/soundcard.h and libossaudio X-BeenThere: sox-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: sox-devel-bounces@lists.sourceforge.net Near as I can tell, no system actually has a machine/soundcard.h file. The libossaudio library on NetBSD and OpenBSD is meant to emulate a few ioctl() commands to facilitate porting of Linux applications. As we have proper sndio support, this is of no use for SoX. --- Are there any BSD users here who can comment on this? --- configure.ac | 5 +---- src/oss.c | 3 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index b1440560181c..9f55b5f8a55c 100644 --- a/configure.ac +++ b/configure.ac @@ -609,10 +609,7 @@ AC_OPTIONAL_FORMAT(sndfile, SNDFILE, [using_sndfile=$tmp_using_sndfile]) -AC_OPTIONAL_FORMAT(oss, OSS, [AC_CHECK_HEADERS(sys/soundcard.h,, - [AC_CHECK_HEADERS(machine/soundcard.h, - [AC_CHECK_LIB(ossaudio, _oss_ioctl, OSS_LIBS="$OSS_LIBS -lossaudio")], - using_oss=no)])]) +AC_OPTIONAL_FORMAT(oss, OSS, [AC_CHECK_HEADERS(sys/soundcard.h,, uing_oss=no)]) diff --git a/src/oss.c b/src/oss.c index 9c6682f1d478..35c7cd2fae9b 100644 --- a/src/oss.c +++ b/src/oss.c @@ -32,9 +32,6 @@ #ifdef HAVE_SYS_SOUNDCARD_H #include #endif -#ifdef HAVE_MACHINE_SOUNDCARD_H - #include -#endif #ifdef HAVE_UNISTD_H #include #endif -- 2.28.0 _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel