1 From: Barak A. Pearlmutter <barak+git@cs.nuim.ie>
2 Subject: guard use of IP_RECVTOS which is unavailable on kfreebsd
3 Origin: upstream, http://git.verplant.org/?p=liboping.git;h=773dbf0
4 Bug-Debian: http://bugs.debian.org/618729
6 diff a/src/liboping.c b/src/liboping.c
7 --- a/src/liboping.c
8 +++ b/src/liboping.c
9 @@ -1540,10 +1540,12 @@
10 {
11 int opt;
13 +#ifdef IP_RECVTOS
14 /* Enable receiving the TOS field */
15 opt = 1;
16 setsockopt (ph->fd, IPPROTO_IP, IP_RECVTOS,
17 &opt, sizeof (opt));
18 +#endif /* IP_RECVTOS */
20 /* Enable receiving the TTL field */
21 opt = 1;