mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-24 21:57:54 +01:00
fix for gettid() only after glibc 2.30
This commit is contained in:
1 parent
83e0599a37
commit
c9fbd7afdf
6 files changed
+36
No files matched your search
@@ -16,6 +16,12 @@
|
||||
#include <string>
|
||||
#include <unistd.h>
|
||||
|
||||
// gettid added in glibc 2.30
|
||||
#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 30
|
||||
#include <sys/syscall.h>
|
||||
#define gettid() syscall(SYS_gettid)
|
||||
#endif
|
||||
|
||||
namespace sls {
|
||||
|
||||
Receiver::~Receiver() = default;
|
||||
|
||||
Reference in new issue
Block a user