diff options
-rw-r--r-- | system/include/libc/pthread.h | 2 | ||||
-rw-r--r-- | system/include/libc/sys/types.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/system/include/libc/pthread.h b/system/include/libc/pthread.h index 0c5dc488..1185fcc1 100644 --- a/system/include/libc/pthread.h +++ b/system/include/libc/pthread.h @@ -46,7 +46,7 @@ int _EXFUN(pthread_mutexattr_getpshared, int _EXFUN(pthread_mutexattr_setpshared, (pthread_mutexattr_t *__attr, int __pshared)); -#if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES) +#if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES) || defined(EMSCRIPTEN) /* Single UNIX Specification 2 Mutex Attributes types */ diff --git a/system/include/libc/sys/types.h b/system/include/libc/sys/types.h index 5cb126a7..734004e7 100644 --- a/system/include/libc/sys/types.h +++ b/system/include/libc/sys/types.h @@ -300,7 +300,7 @@ typedef __uint32_t pthread_t; /* identify a thread */ #define PTHREAD_CREATE_DETACHED 0 #define PTHREAD_CREATE_JOINABLE 1 -#if defined(__XMK__) || defined(__rtems__) +#if defined(__XMK__) || defined(__rtems__) || defined(EMSCRIPTEN) /* The following defines are part of the X/Open System Interface (XSI). */ /* This type of mutex does not detect deadlock. A thread attempting to relock this mutex without first unlocking |