aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-03-15 12:33:18 +0100
committerBjörn-Egil Dahlberg <[email protected]>2016-03-15 12:33:18 +0100
commit5eb0a3f256d6f816ebd56ba5d991eecaf580dd88 (patch)
tree512dc5ac11c90ade523420e0c49eb7f9a6b3887b /erts/emulator/drivers
parent8cc9f09f5d201faadbcd3bf74d91214becf27196 (diff)
parent3c7e658ac4c497cd154bea4178fd560561c78d0c (diff)
downloadotp-5eb0a3f256d6f816ebd56ba5d991eecaf580dd88.tar.gz
otp-5eb0a3f256d6f816ebd56ba5d991eecaf580dd88.tar.bz2
otp-5eb0a3f256d6f816ebd56ba5d991eecaf580dd88.zip
Merge branch 'egil/fix-fdatasync-mac/OTP-13411'
* egil/fix-fdatasync-mac/OTP-13411: erts: Use fcntl(fd, F_FULLFSYNC) instead of fdatasync on Mac OSX
Diffstat (limited to 'erts/emulator/drivers')
-rw-r--r--erts/emulator/drivers/unix/unix_efile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/drivers/unix/unix_efile.c b/erts/emulator/drivers/unix/unix_efile.c
index 00da48b107..ac9b681d03 100644
--- a/erts/emulator/drivers/unix/unix_efile.c
+++ b/erts/emulator/drivers/unix/unix_efile.c
@@ -467,7 +467,7 @@ int
efile_fdatasync(Efile_error *errInfo, /* Where to return error codes. */
int fd) /* File descriptor for file to sync data. */
{
-#ifdef HAVE_FDATASYNC
+#if defined(HAVE_FDATASYNC) && !defined(__DARWIN__)
return check_error(fdatasync(fd), errInfo);
#else
return efile_fsync(errInfo, fd);