diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c index 2728c66a352..174ef1c49db 100644 --- a/src/backend/libpq/auth.c +++ b/src/backend/libpq/auth.c @@ -141,6 +141,12 @@ ULONG (*__ldap_start_tls_sA) ( #endif static int CheckLDAPAuth(Port *port); + +/* LDAP_OPT_DIAGNOSTIC_MESSAGE is the newer spelling */ +#ifndef LDAP_OPT_DIAGNOSTIC_MESSAGE +#define LDAP_OPT_DIAGNOSTIC_MESSAGE LDAP_OPT_ERROR_STRING +#endif + #endif /* USE_LDAP */ /*----------------------------------------------------------------