From: Takashi Iwai Subject: Re: [patch] alsa-utils check if __USE_BSD is defined before compiling "BSD functions" Date: Mon, 08 Dec 2008 11:56:34 +0100 Message-ID: References: <20081208072602.3b20cb50@hcegtvedt> <20081208084848.51dd7906@hcegtvedt> 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 mx1.suse.de (ns.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id EA294103811 for ; Mon, 8 Dec 2008 11:56:34 +0100 (CET) In-Reply-To: <20081208084848.51dd7906@hcegtvedt> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Hans-Christian Egtvedt Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Mon, 8 Dec 2008 08:48:48 +0100, Hans-Christian Egtvedt wrote: > > On Mon, 08 Dec 2008 08:34:55 +0100 > Takashi Iwai wrote: > > > At Mon, 8 Dec 2008 07:26:02 +0100, > > Hans-Christian Egtvedt wrote: > > > > > > Hi, > > > > > > Another bug/issue I tripped over when compiling alsa-utils in an > > > environment using uClibc to supply the C library functions. Here I > > > have enabled some old BSD style functions. The attached patch will > > > honor them if they are enabled. > > > > > > Without this patch I get a redefined error during compile. > > > > Hmm, but with this patch, I get undefined reference errors :) > > alsactl/init_sysfs.c:39: undefined reference to `strlcpy' > > .... > > > > Checking __USB_BSD seems insufficient, unfortunately. > > > > Perhaps it should be UCLIBC specific? Something like > "&& !(defined(__UCLIBC__) && defined(__USE_BSD))" Should be fine. This fix is committed now. Thanks, Takashi