aboutsummaryrefslogtreecommitdiffstats
path: root/erts/etc/unix
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-11-09 18:41:43 +0100
committerSverker Eriksson <[email protected]>2016-11-17 17:18:10 +0100
commit27e865d01ad49664897662ccc123d825505c0ff6 (patch)
tree8e2d2a54e64ea47e86f24fc96dc599b83702df6e /erts/etc/unix
parente770c849d011d8d5872e5f1400d77c25a9268186 (diff)
downloadotp-27e865d01ad49664897662ccc123d825505c0ff6.tar.gz
otp-27e865d01ad49664897662ccc123d825505c0ff6.tar.bz2
otp-27e865d01ad49664897662ccc123d825505c0ff6.zip
erts: Fix all -Wundef errors
Diffstat (limited to 'erts/etc/unix')
-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
}