log: /dev/null doesn't exist on win32.

This commit is contained in:
Avuton Olrich 2010-05-08 00:12:41 -07:00
parent d88c3c8462
commit eb5208c4f9
1 changed files with 2 additions and 0 deletions

View File

@ -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);