diff options
author | Avuton Olrich <avuton@gmail.com> | 2010-05-08 00:12:41 -0700 |
---|---|---|
committer | Avuton Olrich <avuton@gmail.com> | 2010-05-08 00:17:34 -0700 |
commit | eb5208c4f9e642c45b305f338c224cb65075840b (patch) | |
tree | f7e9c1956a37562f5244f02ace17c5e181cc989a /src | |
parent | d88c3c8462f12cec592d24ef8a3ebd570ede9ca6 (diff) | |
download | mpd-eb5208c4f9e642c45b305f338c224cb65075840b.tar.gz mpd-eb5208c4f9e642c45b305f338c224cb65075840b.tar.xz mpd-eb5208c4f9e642c45b305f338c224cb65075840b.zip |
log: /dev/null doesn't exist on win32.
Diffstat (limited to 'src')
-rw-r--r-- | src/log.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |