On 07 Jul 2020, at 15:40, [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?

MacOS says this and works:

checking for gettid()... no

Regards,
Graham
—


Reply via email to