On 7/15/20 3:52 PM, Ruediger Pluem wrote:
> 
> 
> On 7/15/20 2:58 PM, Graham Leggett wrote:
>> On 07 Jul 2020, at 15:40, [email protected] <mailto:[email protected]> wrote:
>>
>>> Author: jorton
>>> Date: Tue Jul  7 13:40:15 2020
>>> New Revision: 1879591
>>>
>>> URL: http://svn.apache.org/viewvc?rev=1879591&view=rev
>>> Log:
>>> Check for and use gettid() directly if available; glibc 2.30 and later
>>> provides a wrapper for the system call:
>>>
>>> * configure.in: Check for gettid() and define HAVE_SYS_GETTID if
>>>  gettid() is only usable via syscall().
>>>
>>> * server/log.c (log_tid): Use gettid() directly if available.
>>
>> This is not working for me on CentOS8.
>>
>> ./configure says this:
>>
>> checking for gettid()... yes
>>
>> but the build fails like this:
>>
>> log.c: In function 'log_tid':
>> log.c:544:21: warning: implicit declaration of function 'gettid'; did you 
>> mean getgid'? [-Wimplicit-function-declaration]
>>          pid_t tid = gettid();
>>                      ^~~~~~
>>                      getgid
>>
>> Is there maybe a missing header file needed somewhere?
> 
> I guess we need to include either
> 
> linux/unistd.h
> 
> or keep including
> 
> sys/syscall.h

Scratch that. Both cause the syscall stuff to be included not a glibc function.

Regards

Rüdiger


Reply via email to