aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-07-24 11:51:16 +0000
committerUlrich Drepper <drepper@redhat.com>2002-07-24 11:51:16 +0000
commitbe45f421536b9da200c91f9088f21480308da67b (patch)
tree050d1b39dbf749795b02add3158e72d14ae2a81d /sysdeps
parent7a9a26813e387c4c6f73635bd04a005cfc0e2c08 (diff)
downloadglibc-be45f421536b9da200c91f9088f21480308da67b.zip
glibc-be45f421536b9da200c91f9088f21480308da67b.tar.gz
glibc-be45f421536b9da200c91f9088f21480308da67b.tar.bz2
Update.
2002-07-24 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet sockets on old kernels.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/opensock.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/opensock.c b/sysdeps/unix/sysv/linux/opensock.c
index f3d3881..86c4d39 100644
--- a/sysdeps/unix/sysv/linux/opensock.c
+++ b/sysdeps/unix/sysv/linux/opensock.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -36,8 +36,15 @@ __opensock (void)
const char procname[15];
} afs[] =
{
+ /* The 2.2 kernels cannot handle ioctl(SIOCGIFCONF) on AF_UNIX sockets.
+ Give the kernel a chance to user inet sockets on old kernels. */
+#if __LINUX_KERNEL_VERSION < 132096
+ { AF_INET, "" },
+ { AF_UNIX, "net/unix" },
+#else
{ AF_UNIX, "net/unix" },
{ AF_INET, "" },
+#endif
{ AF_INET6, "net/if_inet6" },
{ AF_AX25, "net/ax25" },
{ AF_NETROM, "net/nr" },