Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Sep 2012 05:55:41 -0400
From:      Kim Culhan <w8hdkim@gmail.com>
To:        David Xu <davidxu@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: 10-CURRENT clock_getcpuclockid() usage
Message-ID:  <CAKZxVQWSitTq4BKBiDs6PFZp=AYrOKDCvQfzqf5q_0jf2E-p%2BA@mail.gmail.com>
In-Reply-To: <504D787A.30304@freebsd.org>
References:  <CAKZxVQWdwV=9Dy=tz5bjC5kJ2WT=n5nbG1b41Z4fjHa-psJzwg@mail.gmail.com> <504D787A.30304@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 10, 2012 at 1:19 AM, David Xu <davidxu@freebsd.org> wrote:
> On 2012/09/08 23:31, Kim Culhan wrote:
>>
>> clock_getcpuclockid() was added a few weeks ago according to the man page
>> and
>> I'm seeing this error  while building the port net/freeswith-core-devel.
>>
>> The function is used in the Sofia-sip stack, courtesy Nokia Research
>> Center,
>> incorporated into FreeSWITCH.
>>
>> The build system tests for the presence of clock_getcpuclockid() and finds
>> it
>> but in the error messages 'clock_getcpuclockid2' is mentioned.
>>
>> Any thoughts on the clock_getcpuclockid() usage would be very greatly
>> appreciated.
>>
>> LTCOMPILE su_time.lo
>> su_time.c:410:14: error: implicit declaration of function
>> 'clock_getcpuclockid' is invalid in C99
>>        [-Werror,-Wimplicit-function-declaration]
>>      else if (clock_getcpuclockid(0, &cpu) != -1 &&
>>               ^
>> su_time.c:410:14: note: did you mean 'clock_getcpuclockid2'?
>>      else if (clock_getcpuclockid(0, &cpu) != -1 &&
>>               ^~~~~~~~~~~~~~~~~~~
>>               clock_getcpuclockid2
>> /usr/include/sys/time.h:352:5: note: 'clock_getcpuclockid2' declared here
>> int     clock_getcpuclockid2(id_t, int, clockid_t *);
>>          ^
>> 1 error generated.
>> gmake[9]: *** [su_time.lo] Error 1
>>
>>
>> thanks
>> -kim
>
>
> I have committed a patch, please try it.
>
> http://svnweb.freebsd.org/base/head/include/time.h?r1=233600&r2=240295

Looks good, thanks.

-kim



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKZxVQWSitTq4BKBiDs6PFZp=AYrOKDCvQfzqf5q_0jf2E-p%2BA>