summaryrefslogtreecommitdiff
path: root/osdep.h
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-07 23:09:47 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-07 23:09:47 +0000
commit29b3a6627e57585a156fb753c7781b4b1646a934 (patch)
treecb1c78bb8fdc8816d3c384a7c625653435f24946 /osdep.h
parent0fa7f157309dedfd715179241a70b43739a45fb1 (diff)
downloadqemu-29b3a6627e57585a156fb753c7781b4b1646a934.tar.gz
qemu-29b3a6627e57585a156fb753c7781b4b1646a934.tar.bz2
qemu-29b3a6627e57585a156fb753c7781b4b1646a934.zip
Windows build fixes.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2959 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'osdep.h')
-rw-r--r--osdep.h11
1 files changed, 11 insertions, 0 deletions
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