projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf1238c
)
Attempt to fix LDAP build
author
Peter Eisentraut
<peter_e@gmx.net>
Fri, 13 Oct 2017 03:47:48 +0000
(23:47 -0400)
committer
Peter 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
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/libpq/auth.c
b/src/backend/libpq/auth.c
index 2728c66a352840ce6ff43d0a524ac31fa4878b5f..174ef1c49db2b38b3d0d492a324c81caeafcf137 100644
(file)
--- 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 */
/*----------------------------------------------------------------