aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2012-01-12 10:05:41 +0100
committerLukas Larsson <[email protected]>2012-03-20 10:34:05 +0100
commita9dac8d98a9b848426961087b2567ddeb9c05395 (patch)
tree96b2a234c4dceb24f9b0fb54c73a6a1294ea60b0 /erts/emulator/drivers
parentc5dde79924dc4d46842ab4d2a2465dbe64230599 (diff)
downloadotp-a9dac8d98a9b848426961087b2567ddeb9c05395.tar.gz
otp-a9dac8d98a9b848426961087b2567ddeb9c05395.tar.bz2
otp-a9dac8d98a9b848426961087b2567ddeb9c05395.zip
Fix ifdef to check if we are on OS X
Diffstat (limited to 'erts/emulator/drivers')
-rw-r--r--erts/emulator/drivers/common/efile_drv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/emulator/drivers/common/efile_drv.c b/erts/emulator/drivers/common/efile_drv.c
index 98c0c9b59c..7a80b382b1 100644
--- a/erts/emulator/drivers/common/efile_drv.c
+++ b/erts/emulator/drivers/common/efile_drv.c
@@ -156,11 +156,11 @@ static ErlDrvSysInfo sys_info;
* DARWIN. The testcase t_sendfile_crashduring reproduces
* this error when using +A 10.
*/
-#if !defined(DARWIN)
-#define USE_THRDS_FOR_SENDFILE (sys_info.async_threads > 0)
-#else
+#if defined(__APPLE__) && defined(__MACH__)
#define USE_THRDS_FOR_SENDFILE 0
-#endif /* !DARWIN */
+#else
+#define USE_THRDS_FOR_SENDFILE (sys_info.async_threads > 0)
+#endif /* defined(__APPLE__) && defined(__MACH__) */