aboutsummaryrefslogtreecommitdiffstats
path: root/erts/etc
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-11-22 14:22:19 +0100
committerSverker Eriksson <[email protected]>2016-11-22 14:22:19 +0100
commit9563cd5b296fe589c8abe357710fbb79bc766d09 (patch)
tree464ff57782299c2e42d937ab3428a651615bfdbf /erts/etc
parent3d7b55f946162b5a129241dbe67397784a1ba1a5 (diff)
parent011242f927259aa477ebe488a3ee3c4e22081488 (diff)
downloadotp-9563cd5b296fe589c8abe357710fbb79bc766d09.tar.gz
otp-9563cd5b296fe589c8abe357710fbb79bc766d09.tar.bz2
otp-9563cd5b296fe589c8abe357710fbb79bc766d09.zip
Merge branch 'sverker/Wundef'
Diffstat (limited to 'erts/etc')
-rw-r--r--erts/etc/unix/run_erl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/etc/unix/run_erl.c b/erts/etc/unix/run_erl.c
index 6a92e18648..a997297f65 100644
--- a/erts/etc/unix/run_erl.c
+++ b/erts/etc/unix/run_erl.c
@@ -863,7 +863,7 @@ static int open_log(int log_num, int flags)
if (write_all(lfd, buf, strlen(buf)) < 0)
status("Error in writing to log.\n");
-#if USE_FSYNC
+#ifdef USE_FSYNC
fsync(lfd);
#endif
@@ -893,7 +893,7 @@ static void write_to_log(int* lfd, int* log_num, char* buf, int len)
status("Error in writing to log.\n");
}
-#if USE_FSYNC
+#ifdef USE_FSYNC
fsync(*lfd);
#endif
}