Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7d1b8e7

Browse files
committed
Attempt to fix LDAP build
Apparently, an older spelling of LDAP_OPT_DIAGNOSTIC_MESSAGE is LDAP_OPT_ERROR_STRING, so fall back to that one.
1 parent cf1238c commit 7d1b8e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/backend/libpq/auth.c

+6
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ ULONG (*__ldap_start_tls_sA) (
141141
#endif
142142

143143
static int CheckLDAPAuth(Port *port);
144+
145+
/* LDAP_OPT_DIAGNOSTIC_MESSAGE is the newer spelling */
146+
#ifndef LDAP_OPT_DIAGNOSTIC_MESSAGE
147+
#define LDAP_OPT_DIAGNOSTIC_MESSAGE LDAP_OPT_ERROR_STRING
148+
#endif
149+
144150
#endif /* USE_LDAP */
145151

146152
/*----------------------------------------------------------------

0 commit comments

Comments
 (0)