diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-06-07 23:09:47 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-06-07 23:09:47 +0000 |
commit | 29b3a6627e57585a156fb753c7781b4b1646a934 (patch) | |
tree | cb1c78bb8fdc8816d3c384a7c625653435f24946 /osdep.h | |
parent | 0fa7f157309dedfd715179241a70b43739a45fb1 (diff) | |
download | qemu-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.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |