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
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 (verb < 0 || logFileVerbosity >= verb) {
|
||||||
if (inSignalContext && logFileFd >= 0) {
|
if (inSignalContext && logFileFd >= 0) {
|
||||||
write(logFileFd, buf, len);
|
write(logFileFd, buf, len);
|
||||||
#ifdef WIN32
|
#ifndef WIN32
|
||||||
if (logFlush && logSync)
|
if (logFlush && logSync)
|
||||||
fsync(logFileFd);
|
fsync(logFileFd);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue