summaryrefslogtreecommitdiffstats
path: root/debian/patches/ldap-implicit.diff
blob: 688a7642e425020bd0f17685f802afe68b930ffb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Andreas Metzler <ametzler@debian.org>
Date: Wed, 13 Mar 2024 10:11:45 +0100
Subject: Fix FTBFS with -Werror=implicit-function-declaration

Bug-Debian: https://bugs.debian.org/1066137
Origin: vendor
Forwarded: no
Last-Update: 2024-03-13
---
 m4/ldap.m4 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/m4/ldap.m4 b/m4/ldap.m4
index 954f88a..6c86e8a 100644
--- a/m4/ldap.m4
+++ b/m4/ldap.m4
@@ -44,6 +44,8 @@ if test x$_ldap_with != xno ; then
 #include <winsock2.h>
 #include <winldap.h>
 #else
+/* For OpenLDAP, to enable the API that we're using. */
+# define LDAP_DEPRECATED 1
 #include <ldap.h>
 #endif
 ],[ldap_open("foobar",1234);],