X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fthread.h;h=0d71afb4cad59f1e400ead1ec8eed21781ce890b;hp=79f3e713c34bf99d293e96a12f1ae3f32113a78b;hb=eb9df615719cf3afe2bc08035900e5d3451034e1;hpb=9e3d90a964c0fbe97c0b58235336a47111932d5d diff --git a/cinelerra-5.1/guicast/thread.h b/cinelerra-5.1/guicast/thread.h index 79f3e713..0d71afb4 100644 --- a/cinelerra-5.1/guicast/thread.h +++ b/cinelerra-5.1/guicast/thread.h @@ -26,6 +26,8 @@ #include #include +#if !defined(__TERMUX__) + #ifndef NO_TID #include @@ -37,6 +39,8 @@ static inline int gettid() { return syscall(SYS_gettid, 0, 0, 0); } static inline long gettid() { return (long)pthread_self(); } #endif +#endif + // The thread does not autodelete by default. // If autodelete is 1 the thread autodeletes. // If it's synchronous the deletion occurs in join().