From eb5208c4f9e642c45b305f338c224cb65075840b Mon Sep 17 00:00:00 2001 From: Avuton Olrich Date: Sat, 8 May 2010 00:12:41 -0700 Subject: [PATCH] log: /dev/null doesn't exist on win32. --- src/log.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/log.c b/src/log.c index 2538526de..dc7628871 100644 --- a/src/log.c +++ b/src/log.c @@ -272,8 +272,10 @@ void setup_log_output(bool use_stdout) { fflush(NULL); if (!use_stdout) { +#ifndef WIN32 if (out_filename == NULL) out_fd = open("/dev/null", O_WRONLY); +#endif if (out_fd >= 0) { redirect_logs(out_fd);