From 2c94af91ffb0907dab1c2ea30b7dcd2c850a307b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 1 Sep 2018 20:39:27 +0300 Subject: Fix compilation with NaCl. --- src/fs/paths.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3-60-g2f50