From 29b3a6627e57585a156fb753c7781b4b1646a934 Mon Sep 17 00:00:00 2001 From: pbrook Date: Thu, 7 Jun 2007 23:09:47 +0000 Subject: Windows build fixes. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2959 c046a42c-6fe2-441c-8c8c-71466251a162 --- osdep.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'osdep.h') diff --git a/osdep.h b/osdep.h index 68d29d74e3..50686d5935 100644 --- a/osdep.h +++ b/osdep.h @@ -17,4 +17,15 @@ void *get_mmap_addr(unsigned long size); int qemu_create_pidfile(const char *filename); +#ifdef _WIN32 +typedef struct { + long tv_sec; + long tv_usec; +} qemu_timeval; +int qemu_gettimeofday(qemu_timeval *tp); +#else +typedef struct timeval qemu_timeval; +#define qemu_gettimeofday(tp) gettimeofday(tp, NULL); +#endif /* !_WIN32 */ + #endif -- cgit v1.2.3