$NetBSD$

--- common/socket.c.orig	2008-06-24 09:05:44.000000000 +0200
+++ common/socket.c
@@ -22,6 +22,7 @@
 
 #include <stdio.h>
 #include <errno.h>
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/un.h>
 
