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

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

Issue 1243823002: [NaCl SDK] Second phase of enable glibc arm toolchain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@reenable_irtext
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 98a071fa095543f9e9733f28dc88401fb9f973eb..d14fea794f44f1d38b3c96d64376fa0c000fa285 100644
--- a/native_client_sdk/src/libraries/nacl_io/kernel_wrap.h
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_wrap.h
@@ -19,9 +19,17 @@
#include "nacl_io/osutime.h"
#include "sdk_util/macros.h"
-// Curently enable NaCl IO IRT Extension when using arm glibc (which
+#if defined(__native_client__) && defined(__GLIBC__)
+#if __GLIBC__ == 2 && __GLIBC_MINOR__ == 9
+#define NACL_GLIBC_OLD
+#else
+#define NACL_GLIBC_NEW
+#endif
+#endif
+
+// Curently enable NaCl IO IRT Extension when using newer glibc (which
// only supports this method interception).
-#if defined(__native_client__) && defined(__GLIBC__) && defined(__arm__)
+#if defined(NACL_GLIBC_NEW)
# define NACL_IO_IRT_EXT 1
#endif
« no previous file with comments | « native_client_sdk/src/build_tools/sdk_files.list ('k') | native_client_sdk/src/libraries/nacl_io/library.dsc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698