aboutsummaryrefslogtreecommitdiff
path: root/system/include/libc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-16 16:25:08 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-16 16:25:08 -0800
commit1cb0ec225dd97470208cc9e3b59cf35d8f4e3a0b (patch)
tree4cd531366cc90a7521d363e5561c25e9e5328b20 /system/include/libc
parentcf5947187de4390ad0440940f323470b37befbc8 (diff)
restore libcxx to pristine state, undoing all our hacks, and work towards fixing test_exceptions given that
Diffstat (limited to 'system/include/libc')
-rw-r--r--system/include/libc/locale.h9
-rw-r--r--system/include/libc/pthread.h2
2 files changed, 10 insertions, 1 deletions
diff --git a/system/include/libc/locale.h b/system/include/libc/locale.h
index 532faaa5..b75bed7a 100644
--- a/system/include/libc/locale.h
+++ b/system/include/libc/locale.h
@@ -21,6 +21,15 @@
#define LC_TIME 5
#define LC_MESSAGES 6
+/* XXX Emscripten: add masks */
+#define LC_ALL_MASK (1 << LC_ALL)
+#define LC_COLLATE_MASK (1 << LC_COLLATE)
+#define LC_CTYPE_MASK (1 << LC_CTYPE)
+#define LC_MONETARY_MASK (1 << LC_MONETARY)
+#define LC_NUMERIC_MASK (1 << LC_NUMERIC)
+#define LC_TIME_MASK (1 << LC_TIME)
+#define LC_MESSAGES_MASK (1 << LC_MESSAGES)
+
_BEGIN_STD_C
struct lconv
diff --git a/system/include/libc/pthread.h b/system/include/libc/pthread.h
index 63bb6dfa..0c5dc488 100644
--- a/system/include/libc/pthread.h
+++ b/system/include/libc/pthread.h
@@ -31,7 +31,7 @@ extern "C" {
#include <sys/types.h>
#include <time.h>
-#include <sys/sched.h>
+#include <sched.h> /* XXX Emscripten: removed sys/ */
/* Register Fork Handlers */
int _EXFUN(pthread_atfork,(void (*prepare)(void), void (*parent)(void),