Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | autofs: fails to compile with openldap disabled |
| 2 | |
| 3 | As of 5.0.6, it appears that changes were introduced so that |
| 4 | if you compile with openldap disabled and openldap headers are not |
| 5 | available, then autofs fails to build. |
| 6 | |
| 7 | Upstream-Status: Pending |
| 8 | |
| 9 | Signed-off-by: Amy Fong <amy.fong@windriver.com> |
| 10 | -- |
| 11 | lookup_ldap.h | 4 ++++ |
| 12 | 1 file changed, 4 insertions(+) |
| 13 | |
| 14 | --- |
| 15 | include/lookup_ldap.h | 4 ++++ |
| 16 | 1 file changed, 4 insertions(+) |
| 17 | |
| 18 | --- a/include/lookup_ldap.h |
| 19 | +++ b/include/lookup_ldap.h |
| 20 | @@ -1,7 +1,9 @@ |
| 21 | #ifndef LOOKUP_LDAP_H |
| 22 | #define LOOKUP_LDAP_H |
| 23 | |
| 24 | +#ifdef WITH_LDAP |
| 25 | #include <ldap.h> |
| 26 | +#endif |
| 27 | |
| 28 | #ifdef WITH_SASL |
| 29 | #include <openssl/ssl.h> |
| 30 | @@ -109,10 +111,12 @@ |
| 31 | |
| 32 | #define LDAP_AUTH_USESIMPLE 0x0008 |
| 33 | |
| 34 | +#ifdef WITH_LDAP |
| 35 | /* lookup_ldap.c */ |
| 36 | LDAP *init_ldap_connection(unsigned logopt, const char *uri, struct lookup_context *ctxt); |
| 37 | int unbind_ldap_connection(unsigned logopt, LDAP *ldap, struct lookup_context *ctxt); |
| 38 | int authtype_requires_creds(const char *authtype); |
| 39 | +#endif |
| 40 | |
| 41 | #ifdef WITH_SASL |
| 42 | /* cyrus-sasl.c */ |