summaryrefslogtreecommitdiff
path: root/package/knock/patches/patch-src_knockd_c
blob: e3a2d29558bf5af087b925770f121190fc952b23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- 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>