Patchwork build: pthread_atfork() needs include of pthread.h

login
register
mail settings
Submitter Anthony Liguori
Date Nov. 2, 2012, 9:13 p.m.
Message ID <1351890825-6958-1-git-send-email-aliguori@us.ibm.com>
Download mbox | patch
Permalink /patch/196757/
State New
Headers show

Comments

Anthony Liguori - Nov. 2, 2012, 9:13 p.m.
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
---
 qemu-timer.c | 3 +++
 1 file changed, 3 insertions(+)

Patch

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>