0c977498b11cbff09519aef0832c00dd16ad8c54
[openwrt/openwrt.git] / package / network / utils / iputils / patches / 020-include_fixes.patch
1 --- a/ping_common.h
2 +++ b/ping_common.h
3 @@ -2,6 +2,7 @@
4 #include <stdlib.h>
5 #include <unistd.h>
6 #include <time.h>
7 +#include <sys/types.h>
8 #include <sys/param.h>
9 #include <sys/socket.h>
10 #include <linux/sockios.h>
11 @@ -24,6 +25,10 @@
12
13 #include "SNAPSHOT.h"
14
15 +#ifndef HZ
16 +#define HZ 100
17 +#endif
18 +
19 #define DEFDATALEN (64 - 8) /* default data length */
20
21 #define MAXWAIT 10 /* max seconds to wait for response */
22 --- a/clockdiff.c
23 +++ b/clockdiff.c
24 @@ -13,8 +13,6 @@
25 #include <netinet/in.h>
26 #include <netinet/ip.h>
27 #include <netinet/ip_icmp.h>
28 -#define TSPTYPES
29 -#include <protocols/timed.h>
30 #include <fcntl.h>
31 #include <netdb.h>
32 #include <arpa/inet.h>