Skip to content

Commit

Permalink
Merge pull request #134 from Polynomial-C/v4.1_diable-ipv6_fix
Browse files Browse the repository at this point in the history
Fix build with --disable-ipv6
  • Loading branch information
schweikert authored Sep 18, 2018
2 parents f9e1964 + aa4a5f6 commit 8cff065
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/fping.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,11 @@ int main(int argc, char** argv)

/* 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?)");
}

Expand Down

0 comments on commit 8cff065

Please sign in to comment.