aboutsummaryrefslogtreecommitdiff
path: root/qemu-os-win32.h
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-os-win32.h')
-rw-r--r--qemu-os-win32.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/qemu-os-win32.h b/qemu-os-win32.h
index 753679b19..8ba466dbf 100644
--- a/qemu-os-win32.h
+++ b/qemu-os-win32.h
@@ -68,6 +68,12 @@
/* Declaration of ffs() is missing in MinGW's strings.h. */
int ffs(int i);
+/* Missing POSIX functions. Don't use MinGW-w64 macros. */
+#undef gmtime_r
+struct tm *gmtime_r(const time_t *timep, struct tm *result);
+#undef localtime_r
+struct tm *localtime_r(const time_t *timep, struct tm *result);
+
static inline void os_setup_signal_handling(void) {}
static inline void os_daemonize(void) {}
static inline void os_setup_post(void) {}
@@ -86,4 +92,9 @@ typedef struct {
} qemu_timeval;
int qemu_gettimeofday(qemu_timeval *tp);
+static inline bool is_daemonized(void)
+{
+ return false;
+}
+
#endif