summary refs log tree commit diff
path: root/pkgs/development/libraries/glibc/2.9/nss-skip-unavail.patch
blob: dc09b5098707e4e5a6925cae89a9f94e5083120f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff -rc glibc-2.9-20081208-orig/sysdeps/posix/getaddrinfo.c glibc-2.9-20081208/sysdeps/posix/getaddrinfo.c
*** glibc-2.9-20081208-orig/sysdeps/posix/getaddrinfo.c	2008-07-30 21:14:22.000000000 +0200
--- glibc-2.9-20081208/sysdeps/posix/getaddrinfo.c	2008-12-10 11:39:32.000000000 +0100
***************
*** 505,512 ****
  	  int no_data = 0;
  	  int no_inet6_data = 0;
  	  service_user *nip = NULL;
- 	  enum nss_status inet6_status = NSS_STATUS_UNAVAIL;
- 	  enum nss_status status = NSS_STATUS_UNAVAIL;
  	  int no_more;
  	  int old_res_options;
  
--- 505,510 ----
***************
*** 702,707 ****
--- 700,707 ----
  
  	  while (!no_more)
  	    {
+ 	      enum nss_status inet6_status = NSS_STATUS_UNAVAIL;
+ 	      enum nss_status status = NSS_STATUS_UNAVAIL;
  	      nss_gethostbyname4_r fct4
  		= __nss_lookup_function (nip, "gethostbyname4_r");
  	      if (fct4 != NULL)