$OpenBSD: patch-include_sane_sanei_thread_h,v 1.1 2015/12/21 08:40:00 ajacoutot Exp $
--- include/sane/sanei_thread.h.orig	Mon Dec 21 09:30:02 2015
+++ include/sane/sanei_thread.h	Mon Dec 21 09:30:49 2015
@@ -61,6 +61,7 @@
 #include "../include/sane/config.h"
 
 #ifdef USE_PTHREAD
+#include <pthread.h>
 typedef pthread_t SANE_Pid;
 #else
 typedef int SANE_Pid;
