mirror of
https://github.com/plasma-umass/coz.git
synced 2024-09-11 04:55:25 +03:00
Merge pull request #165 from pmcgleenon/master
Fixed issue with gettid() not available with glibc < 2.30.
This commit is contained in:
commit
05d5ed7c1f
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user