upgrade vpx to 1.8.1, rm meson prereq and add dav1d Makefile, warn/gettid patch
[goodguy/cinelerra.git] / cinelerra-5.1 / guicast / thread.h
index 216ecd2b7ec77e5da823834650b25383ef9df76b..7ad81b233b68ac5df1dac76582cf9ef8cc466f02 100644 (file)
 #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); }
+#endif
 
 // The thread does not autodelete by default.
 // If autodelete is 1 the thread autodeletes.