From patchwork Thu Mar 3 12:02:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Klausner X-Patchwork-Id: 8492141 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 31A489F8A8 for ; Thu, 3 Mar 2016 12:03:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2F37620364 for ; Thu, 3 Mar 2016 12:03:01 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 699F3202E5 for ; Thu, 3 Mar 2016 12:02:59 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 008F9261507; Thu, 3 Mar 2016 13:02:57 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 61FB32606D2; Thu, 3 Mar 2016 13:02:50 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 34BFF2612D7; Thu, 3 Mar 2016 13:02:49 +0100 (CET) Received: from danbala.ifoer.tuwien.ac.at (danbala.ifoer.tuwien.ac.at [128.130.168.64]) by alsa0.perex.cz (Postfix) with ESMTP id 5AED1260535 for ; Thu, 3 Mar 2016 13:02:42 +0100 (CET) Received: by danbala.ifoer.tuwien.ac.at (Postfix, from userid 116) id 39208A473; Thu, 3 Mar 2016 13:02:42 +0100 (CET) Date: Thu, 3 Mar 2016 13:02:42 +0100 From: Thomas Klausner To: Takashi Iwai Message-ID: <20160303120242.GL8492@danbala.tuwien.ac.at> References: <20160303095852.GH8492@danbala.tuwien.ac.at> <20160303101005.GI8492@danbala.tuwien.ac.at> <20160303111840.GJ8492@danbala.tuwien.ac.at> <20160303113921.GK8492@danbala.tuwien.ac.at> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20160303113921.GK8492@danbala.tuwien.ac.at> Cc: alsa-devel@alsa-project.org Subject: [alsa-devel] Remaining compatibility patches for NetBSD X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Here are the remaining patches to make the build succeed on NetBSD. More patches are needed for FreeBSD and Solaris, but let's take it one at a time :-) I think the first two (0002 and 0003) should be uncontroversial. For patch 0004 it would perhaps be good to have versionsort/alphasort in a central place instead of two. Do you have a suggestion where? I'm not sure what to do about 0005 since you said you don't want to modify include/sound/asound.h. endian.h seems to be unneeded on src/topology/tplg_local.h; if it's needed, I can move it inside the #ifdef. Thomas From b8abae028c02294906e99b1bc66423a89dce54ec Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Thu, 3 Mar 2016 12:56:58 +0100 Subject: [PATCH 2/5] Add more compatibility defines. --- include/type_compat.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/type_compat.h b/include/type_compat.h index 9cc209f..0c10aed 100644 --- a/include/type_compat.h +++ b/include/type_compat.h @@ -25,6 +25,9 @@ #ifndef EBADFD #define EBADFD EBADF #endif +#ifndef ESTRPIPE +#define ESTRPIPE EPIPE +#endif #ifndef __u16 #define __u16 uint16_t @@ -63,4 +66,8 @@ #define __kernel_off_t off_t #endif +#ifndef __bitwise +#define __bitwise +#endif + #endif