summaryrefslogtreecommitdiffstats
path: root/source/core/slang-io.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/slang-io.cpp')
-rw-r--r--source/core/slang-io.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/core/slang-io.cpp b/source/core/slang-io.cpp
index dd390fc28..928026267 100644
--- a/source/core/slang-io.cpp
+++ b/source/core/slang-io.cpp
@@ -20,7 +20,8 @@
# include <shellapi.h>
#endif
-#if defined(__linux__) || defined(__CYGWIN__) || SLANG_APPLE_FAMILY
+#if defined(__linux__) || defined(__CYGWIN__) || SLANG_APPLE_FAMILY || SLANG_WASM
+# include <fcntl.h>
# include <unistd.h>
// For Path::find
# include <fnmatch.h>
@@ -1012,6 +1013,7 @@ namespace Slang
}
return SLANG_FAIL;
#else
+ SLANG_UNUSED(outPath);
return SLANG_E_NOT_IMPLEMENTED;
#endif
}