--- libvirt.orig/src/hash.h	2008-02-06 18:02:45.000000000 +0900
+++ libvirt/src/hash.h	2008-02-06 18:03:25.000000000 +0900
@@ -12,6 +12,8 @@
 #ifndef __VIR_HASH_H__
 #define __VIR_HASH_H__
 
+#include <pthread.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
--- libvirt.orig/src/hash.c	2008-02-06 18:02:45.000000000 +0900
+++ libvirt/src/hash.c	2008-02-06 18:03:07.000000000 +0900
@@ -25,7 +25,6 @@
 #include <libxml/threads.h>
 #include "internal.h"
 #include "hash.h"
-#include <pthread.h>
 
 #define MAX_HASH_LEN 8
 
