diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-01-17 17:04:21 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-01-17 17:04:21 -0800 |
commit | e9539c95b7f4ec8f9bd3a0e2def05c357268e737 (patch) | |
tree | b893f3852c20d65003a7038b754b354923bf7c84 | |
parent | 2cb805eef875b474920b758459f2cc7a4ead15a6 (diff) |
library fixes
-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 |