Attempt to fix LDAP build
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 13 Oct 2017 03:47:48 +0000 (23:47 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 13 Oct 2017 03:47:48 +0000 (23:47 -0400)
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

index 2728c66a352840ce6ff43d0a524ac31fa4878b5f..174ef1c49db2b38b3d0d492a324c81caeafcf137 100644 (file)
@@ -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 */
 
 /*----------------------------------------------------------------