Fix build with --disable-ipv6

Otheriwse build breaks with:

fping.c:690:24: error: ‘socket6’ undeclared (first use in this function);
did you mean ‘socket4’?
pull/134/head
Lars Wendler 6 years ago
parent f9e1964160
commit aa4a5f681a
No known key found for this signature in database
GPG Key ID: 571DD2D0343C6039

@ -687,7 +687,11 @@ int main(int argc, char** argv)
/* validate various option settings */ /* validate various option settings */
if (socket4 < 0 && socket6 < 0) { if (socket4 < 0
#ifdef IPV6
&& socket6 < 0
#endif
) {
crash_and_burn("can't create socket (must run as root?)"); crash_and_burn("can't create socket (must run as root?)");
} }

Loading…
Cancel
Save