summaryrefslogtreecommitdiff
path: root/qemu-io.c
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2009-08-31 22:16:16 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-09 14:57:20 -0500
commitc01d043983b7d662c16738722aad99abecc74ce5 (patch)
treebb0102921463f768f89f143dda680f42d80b3e82 /qemu-io.c
parent801051995a18d7b8665c8b815eab97c923582092 (diff)
downloadqemu-c01d043983b7d662c16738722aad99abecc74ce5.tar.gz
qemu-c01d043983b7d662c16738722aad99abecc74ce5.tar.bz2
qemu-c01d043983b7d662c16738722aad99abecc74ce5.zip
qemu-io: Improve portability (win32 now supported).
* Add missing include for struct timeval. * Replace non-portable strsep by local qemu_strsep. * Use POSIX basename by including libgen.h. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-io.c')
-rw-r--r--qemu-io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/qemu-io.c b/qemu-io.c
index f96a4de6b4..cac72e9603 100644
--- a/qemu-io.c
+++ b/qemu-io.c
@@ -7,10 +7,12 @@
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*/
+#include <sys/time.h>
#include <sys/types.h>
#include <stdarg.h>
#include <stdio.h>
#include <getopt.h>
+#include <libgen.h>
#include "qemu-common.h"
#include "block_int.h"