mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-06 16:40:12 +01:00
os: fix typo, fsync when WIN32 is _not_ defined
Introduced in 164b38c72f
Reported-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
d53e6e02a2
commit
24ffcfcded
1 changed files with 1 additions and 1 deletions
2
os/log.c
2
os/log.c
|
|
@ -374,7 +374,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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue