diff --git a/include/dwarf.h b/include/dwarf.h
index 3fe6b482..1d4f5dfb 100644
--- a/include/dwarf.h
+++ b/include/dwarf.h
@@ -40,6 +40,7 @@ struct dwarf_cursor;	/* forward-declaration */
 
 #include "dwarf-config.h"
 #include <link.h>
+#include <pthread.h>
 
 /* DWARF expression opcodes.  */