mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-18 14:03:28 +08:00
Update.
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.
This commit is contained in:
parent
cc4f0dde88
commit
ea473bad4c
@ -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>
|
2003-03-29 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
* configure.in: Add mips64* support.
|
* configure.in: Add mips64* support.
|
||||||
|
@ -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>
|
2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
|
||||||
|
|
||||||
* sysdeps/sh/tls.h: Include nptl/descr.h after the definition
|
* sysdeps/sh/tls.h: Include nptl/descr.h after the definition
|
||||||
|
@ -47,6 +47,10 @@ static int no_netlink_support;
|
|||||||
# include "sysdeps/gnu/ifaddrs.c"
|
# include "sysdeps/gnu/ifaddrs.c"
|
||||||
# undef getifaddrs
|
# undef getifaddrs
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
# define no_netlink_support 0
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -292,7 +296,7 @@ getifaddrs (struct ifaddrs **ifap)
|
|||||||
if (ifap)
|
if (ifap)
|
||||||
*ifap = NULL;
|
*ifap = NULL;
|
||||||
|
|
||||||
if (netlink_open (&nh) < 0)
|
if (! no_netlink_support && netlink_open (&nh) < 0)
|
||||||
{
|
{
|
||||||
#if __ASSUME_NETLINK_SUPPORT == 0
|
#if __ASSUME_NETLINK_SUPPORT == 0
|
||||||
no_netlink_support = 1;
|
no_netlink_support = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user