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

Lines changed: 6 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy