aboutsummaryrefslogtreecommitdiff
path: root/include/env.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/env.hpp')
-rw-r--r--include/env.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/env.hpp b/include/env.hpp
index 72b7828..b25cb69 100644
--- a/include/env.hpp
+++ b/include/env.hpp
@@ -59,6 +59,11 @@
#define OS_TYPE OS_TYPE_LINUX
#endif
+#ifdef __EMSCRIPTEN__
+ #define OS_FAMILY OS_FAMILY_POSIX
+ #define OS_TYPE OS_TYPE_LINUX
+#endif
+
#if defined(__GNUC__)
#if defined(__x86_64__) || defined(__pc64__)
#define SIBS_ENV_64BIT