summaryrefslogtreecommitdiff
path: root/net-nds/openldap/files/openldap-2.4.47-warnings.patch
blob: d75bd0d3c5d7886e0a5b2b33ccd9e2c233a1c255 (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
diff --git a/include/ldap.h b/include/ldap.h
index c245651c2..7f14f1051 100644
--- a/include/ldap.h
+++ b/include/ldap.h
@@ -2041,6 +2041,10 @@ LDAP_F( int )
 ldap_is_ldapi_url LDAP_P((
 	LDAP_CONST char *url ));
 
+LDAP_F( int )
+ldap_is_ldapc_url LDAP_P((
+	LDAP_CONST char *url ));
+
 LDAP_F( int )
 ldap_url_parse LDAP_P((
 	LDAP_CONST char *url,
diff --git a/include/ldap_int_thread.h b/include/ldap_int_thread.h
index e2dd8a942..bbc07c845 100644
--- a/include/ldap_int_thread.h
+++ b/include/ldap_int_thread.h
@@ -33,7 +33,7 @@ LDAP_END_DECL
  * definitions for POSIX Threads  *
  *                                *
  **********************************/
-
+#define __USE_UNIX98
 #include <pthread.h>
 #ifdef HAVE_SCHED_H
 #include <sched.h>
diff --git a/libraries/libldap/tls2.c b/libraries/libldap/tls2.c
index d25c190ea..639f598e7 100644
--- a/libraries/libldap/tls2.c
+++ b/libraries/libldap/tls2.c
@@ -76,6 +76,8 @@ static oid_name oids[] = {
 
 #ifdef HAVE_TLS
 
+int ldap_pvt_tls_check_hostname( LDAP *ld, void *s, const char *name_in );
+
 void
 ldap_pvt_tls_ctx_free ( void *c )
 {