From 48ec5600e0bb947c6a0c6a7bde86ce0f3b5a3133 Mon Sep 17 00:00:00 2001 From: David Schweikert Date: Thu, 9 Feb 2017 17:37:30 +0100 Subject: [PATCH] fix compatibility issue with GNU Hurd --- ChangeLog | 7 ++++--- src/fping.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index af418ba..4fc17a4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18,9 +18,10 @@ Unreleased * (feature) --enable-ipv6 is now default * (feature) New option '-4' to force IPv4 * (feature) New option '-6' to force IPv6 - * A C99 compiler is now required - * Option parsing with optparse (https://github.com/skeeto/optparse) - Thanks Christopher Wellons! + * (bugfix) Fix compatibility issue with GNU Hurd + * (other) A C99 compiler is now required + * (other) Option parsing with optparse (https://github.com/skeeto/optparse) + Thanks Christopher Wellons! 2017-02-09 David Schweikert * Version 3.16 diff --git a/src/fping.c b/src/fping.c index 0524626..6e5da7d 100644 --- a/src/fping.c +++ b/src/fping.c @@ -597,7 +597,7 @@ int main(int argc, char** argv) perror("setting type of service octet IP_TOS"); } } -#ifdef IPV6 +#if defined(IPV6) && defined(IPV6_TCLASS) if (socket6) { if (setsockopt(socket6, IPPROTO_IPV6, IPV6_TCLASS, &tos, sizeof(tos))) { perror("setting type of service octet IPV6_TCLASS");