aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xorg-server/os/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/os/log.c b/xorg-server/os/log.c
index 2e5b97a60..de7aaade7 100644
--- a/xorg-server/os/log.c
+++ b/xorg-server/os/log.c
@@ -370,7 +370,7 @@ LogSWrite(int verb, const char *buf, size_t len, Bool end_line)
if (verb < 0 || logFileVerbosity >= verb) {
if (inSignalContext && logFileFd >= 0) {
write(logFileFd, buf, len);
-#ifdef WIN32
+#ifndef WIN32
if (logFlush && logSync)
fsync(logFileFd);
#endif