summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fs/paths.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fs/paths.cpp b/src/fs/paths.cpp
index c13bdd966..8fb57330d 100644
--- a/src/fs/paths.cpp
+++ b/src/fs/paths.cpp
@@ -67,6 +67,12 @@ PRAGMA48(GCC diagnostic ignored "-Wshadow")
#endif // ANDROID
PRAGMA48(GCC diagnostic pop)
+#ifdef __native_client__
+#ifndef SSIZE_MAX
+#define SSIZE_MAX INT_MAX
+#endif
+#endif // __native_client__
+
#include "debug.h"
namespace