Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: native_client_sdk/src/libraries/nacl_io/kernel_wrap.h

Issue 608913003: Added support for NaCl IO to use the IRT Extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reordered functions, routed mprotect to irt version. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698