aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/os/log.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2018-11-07 22:19:17 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-01-06 00:50:26 +0100
commitd409b566bdaf7d40f1697095e62b7811c793fd30 (patch)
tree5776b3527d1d5d08bdf6dcb28357b50f81c60d87 /nx-X11/programs/Xserver/os/log.c
parent74270d6b72f4a154c08bd37dfff92369b4b14863 (diff)
downloadnx-libs-d409b566bdaf7d40f1697095e62b7811c793fd30.tar.gz
nx-libs-d409b566bdaf7d40f1697095e62b7811c793fd30.tar.bz2
nx-libs-d409b566bdaf7d40f1697095e62b7811c793fd30.zip
os: unifdef WIN32
Diffstat (limited to 'nx-X11/programs/Xserver/os/log.c')
-rw-r--r--nx-X11/programs/Xserver/os/log.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/nx-X11/programs/Xserver/os/log.c b/nx-X11/programs/Xserver/os/log.c
index 2dc5627e4..3ec3a2779 100644
--- a/nx-X11/programs/Xserver/os/log.c
+++ b/nx-X11/programs/Xserver/os/log.c
@@ -117,10 +117,6 @@ OR PERFORMANCE OF THIS SOFTWARE.
#include "site.h"
#include "opaque.h"
-#ifdef WIN32
-#include <process.h>
-#define getpid(x) _getpid(x)
-#endif
#ifdef NX_TRANS_SOCKET
@@ -268,9 +264,7 @@ LogInit(const char *fname, const char *backup)
if (saveBuffer && bufferSize > 0) {
fwrite(saveBuffer, bufferPos, 1, logFile);
fflush(logFile);
-#ifndef WIN32
fsync(fileno(logFile));
-#endif
}
}
@@ -398,10 +392,8 @@ LogVWrite(int verb, const char *f, va_list args)
fwrite(tmpBuffer, len, 1, logFile);
if (logFlush) {
fflush(logFile);
-#ifndef WIN32
if (logSync)
fsync(fileno(logFile));
-#endif
}
} else if (needBuffer) {
/*