From 90c00a4c965cd591498259bb0615feefa9720b9a Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 27 Dec 2000 08:14:22 +0000 Subject: [PATCH] (__protocol_available): Uncomment, it's not needed at the moment. --- sysdeps/generic/if_index.c | 5 +++-- sysdeps/mach/hurd/if_index.c | 3 ++- sysdeps/unix/sysv/linux/if_index.c | 3 ++- 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 - +#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 -- 2.43.5