[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2.1 01/36] os-posix: include sys/time.h
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH 2.1 01/36] os-posix: include sys/time.h |
Date: |
Wed, 18 Jun 2014 08:43:25 +0200 |
From: Wenchao Xia <address@hidden>
Since gettimeofday() is used in this header file as a macro define,
include the function's define header file, to avoid compile warning
when other file include os-posix.h.
Signed-off-by: Wenchao Xia <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
include/sysemu/os-posix.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/sysemu/os-posix.h b/include/sysemu/os-posix.h
index 25d0b2a..f131521 100644
--- a/include/sysemu/os-posix.h
+++ b/include/sysemu/os-posix.h
@@ -26,6 +26,8 @@
#ifndef QEMU_OS_POSIX_H
#define QEMU_OS_POSIX_H
+#include <sys/time.h>
+
void os_set_line_buffering(void);
void os_set_proc_name(const char *s);
void os_setup_signal_handling(void);
--
1.9.3
- [Qemu-devel] [PATCH 2.1 00/36] Pending monitor patches for 2.1, Paolo Bonzini, 2014/06/18
- [Qemu-devel] [PATCH 2.1 02/36] qapi: Add includes from qapi/ as dependencies, Paolo Bonzini, 2014/06/18
- [Qemu-devel] [PATCH 2.1 04/36] qapi script: add event support, Paolo Bonzini, 2014/06/18
- [Qemu-devel] [PATCH 2.1 01/36] os-posix: include sys/time.h,
Paolo Bonzini <=
- [Qemu-devel] [PATCH 2.1 05/36] test: add test cases for qapi event, Paolo Bonzini, 2014/06/18
- [Qemu-devel] [PATCH 2.1 08/36] qapi: add new schema file qapi-event.json, Paolo Bonzini, 2014/06/18
- [Qemu-devel] [PATCH 2.1 03/36] qapi: add event helper functions, Paolo Bonzini, 2014/06/18
- [Qemu-devel] [PATCH 2.1 06/36] qapi: adjust existing defines, Paolo Bonzini, 2014/06/18
- [Qemu-devel] [PATCH 2.1 07/36] monitor: add an implemention of qapi event emit method, Paolo Bonzini, 2014/06/18
- [Qemu-devel] [PATCH 2.1 09/36] qapi event: convert SHUTDOWN, Paolo Bonzini, 2014/06/18
- [Qemu-devel] [PATCH 2.1 10/36] qapi event: convert POWERDOWN, Paolo Bonzini, 2014/06/18