X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fthread.h;h=7ad81b233b68ac5df1dac76582cf9ef8cc466f02;hb=a1ec01f78c69ac89b70269884acc212a23e49622;hp=216ecd2b7ec77e5da823834650b25383ef9df76b;hpb=d034ec092c8aaf21c755bc612796df69ffdee4ac;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/guicast/thread.h b/cinelerra-5.1/guicast/thread.h index 216ecd2b..7ad81b23 100644 --- a/cinelerra-5.1/guicast/thread.h +++ b/cinelerra-5.1/guicast/thread.h @@ -27,7 +27,10 @@ #include #include +// 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.