From 8f4473f79fa995139c0bcfbc54ac0f20ac9b1148 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= <rem@videolan.org>
Date: Mon, 28 Aug 2006 18:24:34 +0000
Subject: [PATCH] Work-around to not use IPv6 for braindead unusable IPv6
 implementations

---
 src/network/rootwrap.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/network/rootwrap.c b/src/network/rootwrap.c
index a6023aed3867..604ba0a241dc 100644
--- a/src/network/rootwrap.c
+++ b/src/network/rootwrap.c
@@ -52,6 +52,11 @@
 #include <netinet/in.h>
 #include <pthread.h>
 
+#if defined (AF_INET6) && !defined (IPV6_V6ONLY)
+# warning Uho, your IPv6 support is broken and has been disabled. Fix your C library.
+# undef AF_INET6
+#endif
+
 /*#ifndef HAVE_CLEARENV
 extern char **environ;
 
-- 
GitLab