From 7d1b8e7591690fb68cc53553e0f13b537b5455dc Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 12 Oct 2017 23:47:48 -0400 Subject: [PATCH] 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. --- src/backend/libpq/auth.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c index 2728c66a35..174ef1c49d 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 */ /*---------------------------------------------------------------- -- 2.49.0