Index: native_client_sdk/src/libraries/nacl_io/kernel_wrap.h |
diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_wrap.h b/native_client_sdk/src/libraries/nacl_io/kernel_wrap.h |
index b60636717a7490e92cf35464fa999d889d176547..62d17acf1bb76b78729e7926cff177e1cbec847b 100644 |
--- a/native_client_sdk/src/libraries/nacl_io/kernel_wrap.h |
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_wrap.h |
@@ -18,6 +18,11 @@ |
#include "nacl_io/osutime.h" |
#include "sdk_util/macros.h" |
+// Curently enable NaCl IO IRT Extension when using newlib |
+#if defined(__native_client__) && defined(_NEWLIB_VERSION) |
+# define NACL_IO_IRT_EXT 1 |
+#endif |
+ |
#if defined(__GLIBC__) |
#include <sys/cdefs.h> |
#define NOTHROW __THROW |