projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version update
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
guicast
/
thread.h
diff --git
a/cinelerra-5.1/guicast/thread.h
b/cinelerra-5.1/guicast/thread.h
index 216ecd2b7ec77e5da823834650b25383ef9df76b..7ad81b233b68ac5df1dac76582cf9ef8cc466f02 100644
(file)
--- a/
cinelerra-5.1/guicast/thread.h
+++ b/
cinelerra-5.1/guicast/thread.h
@@
-27,7
+27,10
@@
#include <unistd.h>
#include <sys/syscall.h>
#include <unistd.h>
#include <sys/syscall.h>
+// glibc >= 2.30 provides gettid() in unistd
+#if !defined(__GLIBC_PREREQ) || !__GLIBC_PREREQ(2, 30)
static inline int gettid() { return syscall(SYS_gettid, 0, 0, 0); }
static inline int gettid() { return syscall(SYS_gettid, 0, 0, 0); }
+#endif
// The thread does not autodelete by default.
// If autodelete is 1 the thread autodeletes.
// The thread does not autodelete by default.
// If autodelete is 1 the thread autodeletes.