Skip to content

Instantly share code, notes, and snippets.

@XanClic
Created March 4, 2022 09:39
Show Gist options
  • Save XanClic/218515d0fccfd10870a3dc740327f0a0 to your computer and use it in GitHub Desktop.
Save XanClic/218515d0fccfd10870a3dc740327f0a0 to your computer and use it in GitHub Desktop.
diff --git a/include/sysemu/os-win32.h b/include/sysemu/os-win32.h
index 68af96907e..d865459a2b 100644
--- a/include/sysemu/os-win32.h
+++ b/include/sysemu/os-win32.h
@@ -79,7 +79,11 @@ int qemu_gettimeofday(qemu_timeval *tp);
static inline int os_set_daemonize(bool d)
{
- return -ENOTSUP;
+ if (d) {
+ return -ENOTSUP;
+ } else {
+ return 0;
+ }
}
static inline bool is_daemonized(void)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment