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

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

Issue 1245663004: [NaCl SDK] Re-land "Added support for NaCl IO to use the IRT Extension API." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 2fa26b7258a80a19c4ed2d93e70d8e2379f68ced..98a071fa095543f9e9733f28dc88401fb9f973eb 100644
--- a/native_client_sdk/src/libraries/nacl_io/kernel_wrap.h
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_wrap.h
@@ -19,6 +19,12 @@
#include "nacl_io/osutime.h"
#include "sdk_util/macros.h"
+// Curently enable NaCl IO IRT Extension when using arm glibc (which
+// only supports this method interception).
+#if defined(__native_client__) && defined(__GLIBC__) && defined(__arm__)
+# define NACL_IO_IRT_EXT 1
+#endif
+
#if defined(__GLIBC__)
#include <sys/cdefs.h>
#define NOTHROW __THROW
« no previous file with comments | « native_client_sdk/src/build_tools/build_sdk.py ('k') | native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698