aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvuton Olrich <avuton@gmail.com>2010-05-08 00:12:41 -0700
committerAvuton Olrich <avuton@gmail.com>2010-05-08 00:17:34 -0700
commiteb5208c4f9e642c45b305f338c224cb65075840b (patch)
treef7e9c1956a37562f5244f02ace17c5e181cc989a
parentd88c3c8462f12cec592d24ef8a3ebd570ede9ca6 (diff)
downloadmpd-eb5208c4f9e642c45b305f338c224cb65075840b.tar.gz
mpd-eb5208c4f9e642c45b305f338c224cb65075840b.tar.xz
mpd-eb5208c4f9e642c45b305f338c224cb65075840b.zip
log: /dev/null doesn't exist on win32.
-rw-r--r--src/log.c2
1 files changed, 2 insertions, 0 deletions
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);