diff options
Diffstat (limited to 'native_client_sdk/src/libraries/nacl_io/kernel_wrap.h')
-rw-r--r-- | native_client_sdk/src/libraries/nacl_io/kernel_wrap.h | 12 |
1 files changed, 10 insertions, 2 deletions
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 98a071f..d14fea7 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 |