--- knock-0.6.orig/src/knockd.c	2013-04-08 20:11:56.000000000 +0200
+++ knock-0.6/src/knockd.c	2014-01-16 16:59:04.000000000 +0100
@@ -28,8 +28,8 @@
 #include <ctype.h>
 #include <string.h>
 #include <fcntl.h>
-#if defined(__FreeBSD__) || defined(__APPLE__)
 #include <limits.h>
+#if defined(__FreeBSD__) || defined(__APPLE__)
 #include <sys/socket.h>
 #include <netinet/in_systm.h>
 #endif
@@ -40,10 +40,6 @@
 #include <netinet/udp.h>
 #include <netinet/ip_icmp.h>
 #include <net/if.h>
-#if !defined(__FreeBSD__) && !defined(__APPLE__)
-#include <bits/time.h>
-#include <linux/limits.h>
-#endif
 #include <sys/types.h>
 #include <sys/wait.h>
 #include <sys/ioctl.h>