$NetBSD$

--- src/btlist.c.orig	2005-12-10 00:50:12.000000000 +0100
+++ src/btlist.c
@@ -13,6 +13,7 @@
 
 #include "config.h"
 
+#include <sys/types.h>
 #include <openssl/sha.h>
 #include <stdlib.h>
 #include <string.h>
