--- a/clamdscan/proto.c
+++ b/clamdscan/proto.c
@@ -59,6 +59,7 @@
 #include "shared/misc.h"
 #include "shared/clamdcom.h"
 
+#include <sys/un.h>
 #include "proto.h"
 #include "client.h"