From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2459 Path: news.gmane.org!not-for-mail From: ojab Newsgroups: gmane.linux.lib.musl.general Subject: Re: FreeSWITCH build, timerfd macros Date: Thu, 13 Dec 2012 23:07:42 +0400 Message-ID: <50CA277E.1030001@ojab.ru> References: <50C9BAC2.1090806@ojab.ru> <50CA1032.5030708@barfooze.de> <20121213185912.GD20323@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1355425681 29412 80.91.229.3 (13 Dec 2012 19:08:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Dec 2012 19:08:01 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2460-gllmg-musl=m.gmane.org@lists.openwall.com Thu Dec 13 20:08:15 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1TjE8f-0001GW-GB for gllmg-musl@plane.gmane.org; Thu, 13 Dec 2012 20:08:09 +0100 Original-Received: (qmail 30617 invoked by uid 550); 13 Dec 2012 19:07:56 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 30609 invoked from network); 13 Dec 2012 19:07:56 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=sJYpE4T5tYIUlnsP5wRtKPWwti2zNCZNNKVcsVFmFL0=; b=Dbk4rXF7EeECSsVlu03JXBoSBEcplVWvXtBSmxfa/6LLDNxjmu5LB6Cb1dtNsYVkL0 bB2Iq6uvo7+hq8iP0rdaAKOrGg9OrRakXVyUs3rvDa1qusKp6lUtR05X8UgIlsiseq/7 MFjvNjbQqxIPS1hykU/mzDRWJCzHGRpMyidPuKLson+FMobavFOsaBAmp/sCv1rOvC2Y LCaUmWj2DEkwN/LnzxPq6xpYe2+EW5a6lvRur2uASbTRNx6TvnnV2BzI0Q0XAVVKA8Y/ T8lsQb6P7bPLOt6YxWAhkwuorlowJkqLXqVXBvqzFZ2mc3LpQuUbcJ71tdswACeHz/Q4 ZrOg== User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Thunderbird/20.0a1 In-Reply-To: <20121213185912.GD20323@brightrain.aerifal.cx> X-Gm-Message-State: ALoCoQnPGJGg8helq1MVthUyL3hUjb0ZJwMcFXop9ZKSSnQzF3ySxHNq9WauCUGy+i3nr/Wa+kKL Xref: news.gmane.org gmane.linux.lib.musl.general:2459 Archived-At: On 13.12.2012 22:59, Rich Felker wrote: > On Thu, Dec 13, 2012 at 06:28:18PM +0100, John Spencer wrote: >> On 12/13/2012 12:23 PM, ojab wrote: >>> Hi list, >>> >>> glibc's timerfd.h has some defines, which doesn't exist in musl. >>> >>> One of them — TFD_TIMER_ABSTIME, which is basically >>> #define TFD_TIMER_ABSTIME (1 << 0) >>> >>> is used by FreeSWITCH, so right now FS build fails with >>>> src/switch_time.c:827:29: error: 'TFD_TIMER_ABSTIME' undeclared >>>> (first use in this function) >> >> to make it work you can simply add -DTFD_TIMER_ABSTIME=1 to your CFLAGS. >> for example: >> CFLAGS="-DTFD_TIMER_ABSTIME=1" ./configure --blah --blah > > Yes, but this macro is obviously supposed to be defined in timerfd.h. > Are there any other macros we should add there at the same time? > > Rich > There is also /* Bits to be set in the FLAGS parameter of `timerfd_create'. */ enum { TFD_CLOEXEC = 02000000, #define TFD_CLOEXEC TFD_CLOEXEC TFD_NONBLOCK = 00004000 #define TFD_NONBLOCK TFD_NONBLOCK }; in glibc sources. //wbr ojab