summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/fping/files/fping-4.1-ipv6.patch')
-rw-r--r--net-analyzer/fping/files/fping-4.1-ipv6.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/net-analyzer/fping/files/fping-4.1-ipv6.patch b/net-analyzer/fping/files/fping-4.1-ipv6.patch
new file mode 100644
index 00000000000..7889b568a19
--- /dev/null
+++ b/net-analyzer/fping/files/fping-4.1-ipv6.patch
@@ -0,0 +1,15 @@
+--- a/src/fping.c
++++ b/src/fping.c
+@@ -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?)");
+ }
+