aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/if_index.c5
-rw-r--r--sysdeps/mach/hurd/if_index.c3
-rw-r--r--sysdeps/unix/sysv/linux/if_index.c3
3 files changed, 7 insertions, 4 deletions
diff --git a/sysdeps/generic/if_index.c b/sysdeps/generic/if_index.c
index 4dc2a5511a..a6931e53d1 100644
--- a/sysdeps/generic/if_index.c
+++ b/sysdeps/generic/if_index.c
@@ -51,12 +51,13 @@ if_nameindex (void)
stub_warning (if_nameindex)
#include <stub-tag.h>
-
+#if 0
void
internal_function
__protocol_available (int *have_inet, int *have_inet6)
{
- /* By default we assume that IPv4 is avaialble, IPv6 not. */
+ /* By default we assume that IPv4 is available, IPv6 not. */
*have_inet = 1;
*have_inet6 = 0;
}
+#endif
diff --git a/sysdeps/mach/hurd/if_index.c b/sysdeps/mach/hurd/if_index.c
index e8ee999899..9870e44715 100644
--- a/sysdeps/mach/hurd/if_index.c
+++ b/sysdeps/mach/hurd/if_index.c
@@ -156,7 +156,7 @@ if_freenameindex (struct if_nameindex *ifn)
free (ifn);
}
-
+#if 0
void
internal_function
__protocol_available (int *have_inet, int *have_inet6)
@@ -164,3 +164,4 @@ __protocol_available (int *have_inet, int *have_inet6)
*have_inet = _hurd_socket_server (PF_INET, 0) != MACH_PORT_NULL;
*have_inet6 = _hurd_socket_server (PF_INET6, 0) != MACH_PORT_NULL;
}
+#endif
diff --git a/sysdeps/unix/sysv/linux/if_index.c b/sysdeps/unix/sysv/linux/if_index.c
index 764dac79e4..5a57cb9459 100644
--- a/sysdeps/unix/sysv/linux/if_index.c
+++ b/sysdeps/unix/sysv/linux/if_index.c
@@ -243,7 +243,7 @@ if_indextoname (unsigned int ifindex, char *ifname)
#endif
}
-
+#if 0
void
internal_function
__protocol_available (int *have_inet, int *have_inet6)
@@ -316,3 +316,4 @@ __protocol_available (int *have_inet, int *have_inet6)
__close (fd);
}
+#endif