Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-integ / recipes-support / openldap / files / 0010-openldap-ai-addrconfig.patch
1 From 6fcc222021258cf00cef05bdc487c614c33ab371 Mon Sep 17 00:00:00 2001
2 From: babak sarashki <babak.sarashki@windriver.com>
3 Date: Sun, 3 Nov 2019 14:44:05 -0800
4 Subject: [PATCH 10/20] openldap ai addrconfig
5
6 From stx 1901: openldap-ai-addrconfig.patch
7 use AI_ADDRCONFIG if defined in the environment
8
9 Author: Jan Vcelak <jvcelak@redhat.com>
10 Upstream ITS: #7326
11 Resolves: #835013
12 ---
13  libraries/libldap/os-ip.c | 3 +--
14  1 file changed, 1 insertion(+), 2 deletions(-)
15
16 diff --git a/libraries/libldap/os-ip.c b/libraries/libldap/os-ip.c
17 index 623dfad..0618900 100644
18 --- a/libraries/libldap/os-ip.c
19 +++ b/libraries/libldap/os-ip.c
20 @@ -594,8 +594,7 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb,
21  
22  #if defined( HAVE_GETADDRINFO ) && defined( HAVE_INET_NTOP )
23         memset( &hints, '\0', sizeof(hints) );
24 -#ifdef USE_AI_ADDRCONFIG /* FIXME: configure test needed */
25 -       /* Use AI_ADDRCONFIG only on systems where its known to be needed. */
26 +#ifdef AI_ADDRCONFIG
27         hints.ai_flags = AI_ADDRCONFIG;
28  #endif
29         hints.ai_family = ldap_int_inet4or6;
30 -- 
31 2.17.1
32