Merge pull request #165 from pmcgleenon/master

Fixed issue with gettid() not available with glibc < 2.30.
This commit is contained in:
Emery Berger 2020-10-09 09:47:28 -04:00 committed by GitHub
commit 05d5ed7c1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,11 @@
#include "ccutil/log.h"
#include "ccutil/wrapped_array.h"
#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 30
#include <sys/syscall.h>
#define gettid() syscall(SYS_gettid)
#endif
// Workaround for missing hw_breakpoint.h include file:
// This include file just defines constants used to configure watchpoint registers.
// This will be constant across x86 systems.