diff options
-rw-r--r-- | system/include/libc/pthread.h | 6 | ||||
-rw-r--r-- | system/include/libc/sys/types.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/system/include/libc/pthread.h b/system/include/libc/pthread.h index f99acbd6..ae9f2c88 100644 --- a/system/include/libc/pthread.h +++ b/system/include/libc/pthread.h @@ -27,12 +27,6 @@ extern "C" { #include <unistd.h> -#if EMSCRIPTEN - #define _POSIX_THREADS - #define _UNIX98_THREAD_MUTEX_ATTRIBUTES - #define _POSIX_READER_WRITER_LOCKS -#endif - #if defined(_POSIX_THREADS) #include <sys/types.h> diff --git a/system/include/libc/sys/types.h b/system/include/libc/sys/types.h index 72ccd3a2..4bf41a34 100644 --- a/system/include/libc/sys/types.h +++ b/system/include/libc/sys/types.h @@ -24,6 +24,12 @@ #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 |