]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 29 Mar 2003 09:24:03 +0000 (09:24 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 29 Mar 2003 09:24:03 +0000 (09:24 +0000)
2003-03-29  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
netlink_open calls if netlink is known to not be available.

ChangeLog
nptl/ChangeLog
sysdeps/unix/sysv/linux/ifaddrs.c

index 756e2b17c087e0887a74c14c833cc00e653d3c89..e299697d6ffac1826c89f25752eaf4826a2b0e89 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-29  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
+       netlink_open calls if netlink is known to not be available.
+
 2003-03-29  Alexandre Oliva  <aoliva@redhat.com>
 
        * configure.in: Add mips64* support.
index 0724d7214f726cac209fa074a13e88f4927f9a41..86d766f1634ff8d66b784083be4a1d2d935c3cdb 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-29  Ulrich Drepper  <drepper@redhat.com>
+
+       * Makefile (libpthread-routines): Add pthread_atfork.
+       (libpthread-static-only-routines): Add pthread_atfork.
+
 2003-03-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
 
        * sysdeps/sh/tls.h: Include nptl/descr.h after the definition
index 3921c40dc7108f725eb855963d5df154ff3a7d31..f4f8606892371aba2a3726e449dc469a4661142f 100644 (file)
 #if __ASSUME_NETLINK_SUPPORT == 0
 static int no_netlink_support;
 
-#define getifaddrs fallback_getifaddrs
-#include "sysdeps/gnu/ifaddrs.c"
-#undef getifaddrs
+# define getifaddrs fallback_getifaddrs
+# include "sysdeps/gnu/ifaddrs.c"
+# undef getifaddrs
+
+#else
+
+# define no_netlink_support 0
 
 #endif
 
@@ -292,7 +296,7 @@ getifaddrs (struct ifaddrs **ifap)
   if (ifap)
     *ifap = NULL;
 
-  if (netlink_open (&nh) < 0)
+  if (! no_netlink_support && netlink_open (&nh) < 0)
     {
 #if __ASSUME_NETLINK_SUPPORT == 0
        no_netlink_support = 1;