Index: src/core/hook/hook-url.h
--- src/core/hook/hook-url.h.orig
+++ src/core/hook/hook-url.h
@@ -20,6 +20,8 @@
 #ifndef WEECHAT_HOOK_URL_H
 #define WEECHAT_HOOK_URL_H
 
+#include <pthread.h>
+
 struct t_weechat_plugin;
 struct t_infolist_item;
 struct t_hashtable;
