X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fthread.h;h=7ad81b233b68ac5df1dac76582cf9ef8cc466f02;hb=0e6cf5b52d1ebce9272270144bcf43df4683507e;hp=216ecd2b7ec77e5da823834650b25383ef9df76b;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;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.