c48107aa95
OBS-URL: https://build.opensuse.org/package/show/network:ldap/openldap2?expand=0&rev=cc42345a5a5edf078cfaf9472fa6544d
34 lines
1017 B
Plaintext
34 lines
1017 B
Plaintext
From 21d21f0d9aed8876722748ef8ba92f75dbcdc771 Mon Sep 17 00:00:00 2001
|
|
From: Ralf Haferkamp <rhafer@suse.de>
|
|
Date: Wed, 16 Jun 2010 14:08:03 +0200
|
|
Subject: libldap use gethostbyname_r
|
|
|
|
|
|
1 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/libraries/libldap/util-int.c b/libraries/libldap/util-int.c
|
|
index 0704f9a..50a3389 100644
|
|
--- a/libraries/libldap/util-int.c
|
|
+++ b/libraries/libldap/util-int.c
|
|
@@ -52,7 +52,7 @@ extern int h_errno;
|
|
#ifndef LDAP_R_COMPILE
|
|
# undef HAVE_REENTRANT_FUNCTIONS
|
|
# undef HAVE_CTIME_R
|
|
-# undef HAVE_GETHOSTBYNAME_R
|
|
+/* # undef HAVE_GETHOSTBYNAME_R */
|
|
# undef HAVE_GETHOSTBYADDR_R
|
|
|
|
#else
|
|
@@ -330,7 +330,7 @@ ldap_pvt_csnstr(char *buf, size_t len, unsigned int replica, unsigned int mod)
|
|
#define BUFSTART (1024-32)
|
|
#define BUFMAX (32*1024-32)
|
|
|
|
-#if defined(LDAP_R_COMPILE)
|
|
+#if defined(LDAP_R_COMPILE) || defined(HAVE_GETHOSTBYNAME_R)
|
|
static char *safe_realloc( char **buf, int len );
|
|
|
|
#if !(defined(HAVE_GETHOSTBYNAME_R) && defined(HAVE_GETHOSTBYADDR_R))
|
|
--
|
|
1.7.1
|
|
|