aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-10-12 23:47:48 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-10-12 23:47:48 -0400
commit7d1b8e7591690fb68cc53553e0f13b537b5455dc (patch)
treefaa3a8e00970868de23e49afec147f00753da1ba /src
parentcf1238cd9763f0a6e3454ddf75ac56ff722f18ee (diff)
downloadpostgresql-7d1b8e7591690fb68cc53553e0f13b537b5455dc.tar.gz
postgresql-7d1b8e7591690fb68cc53553e0f13b537b5455dc.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/backend/libpq/auth.c6
1 files changed, 6 insertions, 0 deletions
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 */
/*----------------------------------------------------------------