$OpenBSD$
--- gatling.c.orig	Sat Nov  1 20:13:03 2014
+++ gatling.c	Sat Nov  1 20:15:07 2014
@@ -57,6 +57,10 @@
 #include <sys/prctl.h>
 #endif
 
+#ifndef EPROTO
+#	define EPROTO ENOPROTOOPT
+#endif
+
 char serverroot[1024];
 
 #ifdef SUPPORT_MULTIPROC
