diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-02-05 18:26:02 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-02-05 18:26:02 -0800 |
commit | 5a99d2567e76f257309cfd225876f3a5402e5f46 (patch) | |
tree | 4017c62d53033d3cdfb1cdeb26529190d58784b2 /system/include/libc | |
parent | ac0972ebf6cb8ff17f1bbbf01526d29fd2d2f420 (diff) | |
parent | 9aa7bbf6987cad3cff53906c5d6a6e77b6bd5b9c (diff) |
Merge branch 'incoming'
Diffstat (limited to 'system/include/libc')
-rw-r--r-- | system/include/libc/sys/features.h | 5 | ||||
-rw-r--r-- | system/include/libc/sys/types.h | 6 |
2 files changed, 4 insertions, 7 deletions
diff --git a/system/include/libc/sys/features.h b/system/include/libc/sys/features.h index 87a520a0..8c32bf04 100644 --- a/system/include/libc/sys/features.h +++ b/system/include/libc/sys/features.h @@ -26,7 +26,10 @@ extern "C" { #endif #if EMSCRIPTEN -#define _POSIX_REALTIME_SIGNALS 1 +#define _POSIX_REALTIME_SIGNALS 1 +#define _POSIX_THREADS 200112L +#define _UNIX98_THREAD_MUTEX_ATTRIBUTES 1 +#define _POSIX_READER_WRITER_LOCKS 200112L #endif /* RTEMS adheres to POSIX -- 1003.1b with some features from annexes. */ diff --git a/system/include/libc/sys/types.h b/system/include/libc/sys/types.h index e90a74ac..c36f724c 100644 --- a/system/include/libc/sys/types.h +++ b/system/include/libc/sys/types.h @@ -24,12 +24,6 @@ #include <machine/_types.h> -#if EMSCRIPTEN - #define _POSIX_THREADS - #define _UNIX98_THREAD_MUTEX_ATTRIBUTES - #define _POSIX_READER_WRITER_LOCKS -#endif - #if defined(__rtems__) || defined(__XMK__) || defined(EMSCRIPTEN) /* * The following section is RTEMS specific and is needed to more |