aboutsummaryrefslogtreecommitdiff
path: root/qemu-timer.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2012-11-02 16:12:53 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2012-11-04 15:13:47 -0600
commit30ea833941a7de51454cf99913f5edb3e7e21c0d (patch)
tree1bacfea39ab2abdbc212e7518d034378b924ccb2 /qemu-timer.c
parented224a56b3b3234d99832a063ee3aaee3613d115 (diff)
downloadqemu-30ea833941a7de51454cf99913f5edb3e7e21c0d.zip
qemu-30ea833941a7de51454cf99913f5edb3e7e21c0d.tar.gz
qemu-30ea833941a7de51454cf99913f5edb3e7e21c0d.tar.bz2
build: pthread_atfork() needs include of pthread.h
Cc: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-timer.c')
-rw-r--r--qemu-timer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/qemu-timer.c b/qemu-timer.c
index 7b2217a..8d9cf38 100644
--- a/qemu-timer.c
+++ b/qemu-timer.c
@@ -30,6 +30,9 @@
#include "hw/hw.h"
#include "qemu-timer.h"
+#ifdef CONFIG_POSIX
+#include <pthread.h>
+#endif
#ifdef _WIN32
#include <mmsystem.h>