Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 13 Dec 2012 23:07:42 +0400
From: ojab <ojab@...b.ru>
To: musl@...ts.openwall.com
Subject: Re: FreeSWITCH build, timerfd macros

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

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.