rseq selftests param_test.c gettid build failure

From: Rantala, Tommi T. (Nokia - FI/Espoo)
Date: Thu Sep 12 2019 - 07:54:42 EST


Hi Mathieu,

I'm getting rseq selftest build failure with glibc 2.30, which added
gettid():

param_test.c:18:21: error: static declaration of 'gettid' follows non-
static declaration
18 | static inline pid_t gettid(void)
| ^~~~~~
In file included from /usr/include/unistd.h:1170,
from param_test.c:11:
/usr/include/bits/unistd_ext.h:34:16: note: previous declaration of
'gettid' was here
34 | extern __pid_t gettid (void) __THROW;
| ^~~~~~

BR,
Tommi