about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/ifaddrs.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-06-10 08:58:05 +0000
committerUlrich Drepper <drepper@redhat.com>2003-06-10 08:58:05 +0000
commit1dc869d13c77297661bf7ba4bde4c879818149da (patch)
tree286fc8327a3a4fdc742d90b8ca8bd278f3616b8d /sysdeps/unix/sysv/linux/ifaddrs.c
parent06120d793a3ae31f8f510f220c8a0a8e23b6a177 (diff)
downloadglibc-1dc869d13c77297661bf7ba4bde4c879818149da.tar.gz
glibc-1dc869d13c77297661bf7ba4bde4c879818149da.tar.xz
glibc-1dc869d13c77297661bf7ba4bde4c879818149da.zip
Update.
	* inet/Makefile (aux): Add check_fd.
	* include/ifaddrs.h: Add prototype for __check_fd.
	* sysdeps/generic/check_fd.c: New file.
	* sysdeps/unix/sysv/linux/check_fd.c: New file.
	* sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
	from no_netlink_support.  Export.
	* sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
	call __check_pf.

	* sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
Diffstat (limited to 'sysdeps/unix/sysv/linux/ifaddrs.c')
-rw-r--r--sysdeps/unix/sysv/linux/ifaddrs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/ifaddrs.c b/sysdeps/unix/sysv/linux/ifaddrs.c
index bc1ca8565f..837bfca664 100644
--- a/sysdeps/unix/sysv/linux/ifaddrs.c
+++ b/sysdeps/unix/sysv/linux/ifaddrs.c
@@ -41,7 +41,7 @@
 /* We don't know if we have NETLINK support compiled in in our
    Kernel, so include the old implementation as fallback.  */
 #if __ASSUME_NETLINK_SUPPORT == 0
-static int no_netlink_support;
+int __no_netlink_support attribute_hidden;
 
 # define getifaddrs fallback_getifaddrs
 # include "sysdeps/gnu/ifaddrs.c"
@@ -49,7 +49,7 @@ static int no_netlink_support;
 
 #else
 
-# define no_netlink_support 0
+# define __no_netlink_support 0
 
 #endif
 
@@ -297,17 +297,17 @@ getifaddrs (struct ifaddrs **ifap)
   if (ifap)
     *ifap = NULL;
 
-  if (! no_netlink_support && netlink_open (&nh) < 0)
+  if (! __no_netlink_support && netlink_open (&nh) < 0)
     {
 #if __ASSUME_NETLINK_SUPPORT == 0
-       no_netlink_support = 1;
+       __no_netlink_support = 1;
 #else
        return -1;
 #endif
     }
 
 #if __ASSUME_NETLINK_SUPPORT == 0
-  if (no_netlink_support)
+  if (__no_netlink_support)
     return fallback_getifaddrs (ifap);
 #endif