From: Takashi Iwai Subject: Re: [PATCH 7/8] Avoid including sys/io.h on architectures that lack it. Date: Thu, 16 May 2013 09:54:25 +0200 Message-ID: References: <1368638351-29200-1-git-send-email-jordi@debian.org> <1368638351-29200-8-git-send-email-jordi@debian.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 0FF842619E1 for ; Thu, 16 May 2013 09:54:32 +0200 (CEST) In-Reply-To: <1368638351-29200-8-git-send-email-jordi@debian.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 To: Jordi Mallach Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Wed, 15 May 2013 19:19:10 +0200, Jordi Mallach wrote: > > Extend the check for PowerPC to the rest of official and unofficial > Debian linux-based architectures that lack sys/io.h, based on EGLIBC 2.17. > sys/io.h is available, at the time of this writing, on the alpha, i386, > ia64, and arm Linux targets. > > Signed-off-by: Jordi Mallach > --- > hda-verb/hda-verb.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/hda-verb/hda-verb.c b/hda-verb/hda-verb.c > index bd746ad..2b85923 100644 > --- a/hda-verb/hda-verb.c > +++ b/hda-verb/hda-verb.c > @@ -13,7 +13,11 @@ > #include > #include > #include > -#ifndef __PPC__ > +/* EGLIBC 2.17 supports sys/io.h for alpha, i386, ia64, arm, > + hurd-i386, and kfreebsd-i386. */ > +#if !defined (__powerpc__) && !defined (__sparc__) && !defined (__s390__) && \ > + !defined (__mips__) && !defined (__hppa__) && !defined (__m68k__) && \ > + !defined (__sh__) > #include > #endif > #include If the change starts looking like this, better to consider what you're really doing :) Dropping the inclusion of sys/io.h is the right fix. thanks, Takashi