]> git.proxmox.com Git - mirror_qemu.git/blobdiff - os-posix.c
hw/arm/exynos4210: Drop int_gic_irq[] from Exynos4210Irq struct
[mirror_qemu.git] / os-posix.c
index ae6c9f2a5e983772745067ea9db74ac44b93f9ac..faf6e6978b9f7c9a25d2ae458d9e1b0f9875d354 100644 (file)
@@ -29,7 +29,6 @@
 #include <grp.h>
 #include <libgen.h>
 
-#include "qemu-common.h"
 /* Needed early for CONFIG_BSD etc. */
 #include "net/slirp.h"
 #include "qemu/qemu-options.h"
@@ -292,7 +291,7 @@ void os_setup_post(void)
         dup2(fd, 0);
         dup2(fd, 1);
         /* In case -D is given do not redirect stderr to /dev/null */
-        if (!qemu_logfile) {
+        if (!qemu_log_enabled()) {
             dup2(fd, 2);
         }
 
@@ -317,6 +316,12 @@ bool is_daemonized(void)
     return daemonize;
 }
 
+int os_set_daemonize(bool d)
+{
+    daemonize = d;
+    return 0;
+}
+
 int os_mlock(void)
 {
 #ifdef HAVE_MLOCKALL