$NetBSD$

--- include/sane/sanei_tcp.h.orig	2006-11-30 23:23:19.000000000 +0000
+++ include/sane/sanei_tcp.h
@@ -22,6 +22,7 @@
 
 #include <netinet/in.h>
 #include <netdb.h>
+#include <sys/types.h>
 
 extern SANE_Status sanei_tcp_open(const char *host, int port, int *fdp);
 extern void sanei_tcp_close(int fd);
