Closed nerijus closed 5 months ago
Hmm, but gettid()
should probably be defined only if it is not found, so my PR is not correct.
I see gettid system call wrapper was added in glibc 2.30, while CentOS 8 has glibc 2.28: https://sourceware.org/bugzilla/show_bug.cgi?id=6399#c62
Found https://lore.kernel.org/all/20190311150041.373-1-plautrba@redhat.com/T/ - will redo PR like this.
Redid by introducing nv_gettid()
like latest libselinux does by introducing selinux_gettid()
- see https://github.com/SELinuxProject/selinux/blob/main/libselinux/src/procattr.c#L28
Thanks for the patch!
The link error is:
With this patch it compiles and works correctly on CentOS 8.