diff options
| author | Lily <egzozu.be.bas@gmail.com> | 2023-11-28 10:56:34 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-28 08:56:34 +0100 |
| commit | ae83035380b6f3335873fd92d18fb1099dff6365 (patch) | |
| tree | bd2b7915dc7da0ce0b7acb264664735113a37152 /src/libtools/threads.c | |
| parent | 4566ff6d247a231a67c633321a77e38e973f612b (diff) | |
| download | box64-ae83035380b6f3335873fd92d18fb1099dff6365.tar.gz box64-ae83035380b6f3335873fd92d18fb1099dff6365.zip | |
[ANDROID] Fix Clang Compiling (#1094)
Diffstat (limited to 'src/libtools/threads.c')
| -rw-r--r-- | src/libtools/threads.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libtools/threads.c b/src/libtools/threads.c index f7c2badf..e4f91d15 100644 --- a/src/libtools/threads.c +++ b/src/libtools/threads.c @@ -339,11 +339,13 @@ EXPORT int my_pthread_attr_getguardsize(x64emu_t* emu, pthread_attr_t* attr, siz (void)emu; return pthread_attr_getguardsize(getAlignedAttr(attr), size); } +#ifndef TERMUX EXPORT int my_pthread_attr_getinheritsched(x64emu_t* emu, pthread_attr_t* attr, int* sched) { (void)emu; return pthread_attr_getinheritsched(getAlignedAttr(attr), sched); } +#endif EXPORT int my_pthread_attr_getschedparam(x64emu_t* emu, pthread_attr_t* attr, void* param) { (void)emu; @@ -398,11 +400,13 @@ EXPORT int my_pthread_attr_setguardsize(x64emu_t* emu, pthread_attr_t* attr, siz (void)emu; return pthread_attr_setguardsize(getAlignedAttr(attr), size); } +#ifndef TERMUX EXPORT int my_pthread_attr_setinheritsched(x64emu_t* emu, pthread_attr_t* attr, int sched) { (void)emu; return pthread_attr_setinheritsched(getAlignedAttr(attr), sched); } +#endif EXPORT int my_pthread_attr_setschedparam(x64emu_t* emu, pthread_attr_t* attr, void* param) { (void)emu; @@ -808,6 +812,7 @@ EXPORT int my_pthread_mutexattr_getkind_np(x64emu_t* emu, my_mutexattr_t *attr, attr->x86 = mattr.x86; return ret; } +#ifndef TERMUX EXPORT int my_pthread_mutexattr_getprotocol(x64emu_t* emu, my_mutexattr_t *attr, void* p) { my_mutexattr_t mattr = {0}; @@ -816,6 +821,7 @@ EXPORT int my_pthread_mutexattr_getprotocol(x64emu_t* emu, my_mutexattr_t *attr, attr->x86 = mattr.x86; return ret; } +#endif EXPORT int my_pthread_mutexattr_gettype(x64emu_t* emu, my_mutexattr_t *attr, void* p) { my_mutexattr_t mattr = {0}; @@ -852,6 +858,7 @@ EXPORT int my_pthread_mutexattr_setkind_np(x64emu_t* emu, my_mutexattr_t *attr, attr->x86 = mattr.x86; return ret; } +#ifndef TERMUX EXPORT int my_pthread_mutexattr_setprotocol(x64emu_t* emu, my_mutexattr_t *attr, int p) { my_mutexattr_t mattr = {0}; @@ -860,6 +867,7 @@ EXPORT int my_pthread_mutexattr_setprotocol(x64emu_t* emu, my_mutexattr_t *attr, attr->x86 = mattr.x86; return ret; } +#endif EXPORT int my_pthread_mutexattr_setpshared(x64emu_t* emu, my_mutexattr_t *attr, int p) { my_mutexattr_t mattr = {0}; |