diff options
author | Lukas Larsson <[email protected]> | 2016-03-16 17:34:05 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2016-03-16 17:34:05 +0100 |
commit | da035ea5b65610bd9d19765609ed924c3fe0bdd1 (patch) | |
tree | 1a09779941f8f5321cc2bf0f7ed72c91bb027124 /erts/emulator/beam | |
parent | ae61174845dde2ddda537d57ace5b1124b7f4191 (diff) | |
download | otp-da035ea5b65610bd9d19765609ed924c3fe0bdd1.tar.gz otp-da035ea5b65610bd9d19765609ed924c3fe0bdd1.tar.bz2 otp-da035ea5b65610bd9d19765609ed924c3fe0bdd1.zip |
erts: Fix LOW_WRITE section for non llvm os x compilation
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/sys.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/beam/sys.h b/erts/emulator/beam/sys.h index 03b9088adc..44735c0ec0 100644 --- a/erts/emulator/beam/sys.h +++ b/erts/emulator/beam/sys.h @@ -138,10 +138,10 @@ typedef ERTS_SYS_FD_TYPE ErtsSysFdType; #endif #if ERTS_AT_LEAST_GCC_VSN__(2, 96, 0) -#ifndef __llvm__ -# define ERTS_WRITE_UNLIKELY(X) X __attribute__ ((section ("ERTS_LOW_WRITE") )) -#else +#if (defined(__APPLE__) && defined(__MACH__)) || defined(__DARWIN__) # define ERTS_WRITE_UNLIKELY(X) X __attribute__ ((section ("__DATA,ERTS_LOW_WRITE") )) +#else +# define ERTS_WRITE_UNLIKELY(X) X __attribute__ ((section ("ERTS_LOW_WRITE") )) #endif #else # define ERTS_WRITE_UNLIKELY(X) X |