diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-01-03 16:16:57 +0100 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2011-01-07 05:00:44 -0500 |
commit | 8a9fdbfb039bf1894cf3b301c8a0f84261ec8c1c (patch) | |
tree | f08d850fd5b68f8bb06a5e92cbbea5fb49b277c0 /ipa-client/ipa-client-common.h | |
parent | 21bf175e0c10b087deb10b8e328a6a6bd549c0f9 (diff) | |
download | freeipa-8a9fdbfb039bf1894cf3b301c8a0f84261ec8c1c.tar.gz freeipa-8a9fdbfb039bf1894cf3b301c8a0f84261ec8c1c.tar.xz freeipa-8a9fdbfb039bf1894cf3b301c8a0f84261ec8c1c.zip |
Do not use LDAP_DEPRECATED in plugins
Remove the LDAP_DEPRECATED constant and do not use functions that are
marked as deprecated in recent OpenLDAP releases. Also always define
WITH_{MOZLDAP,OPENLDAP} since there are conditional header includes that
depend on that constant.
https://fedorahosted.org/freeipa/ticket/576
Diffstat (limited to 'ipa-client/ipa-client-common.h')
-rw-r--r-- | ipa-client/ipa-client-common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ipa-client/ipa-client-common.h b/ipa-client/ipa-client-common.h index 863b805ae..b738fb4a5 100644 --- a/ipa-client/ipa-client-common.h +++ b/ipa-client/ipa-client-common.h @@ -23,6 +23,10 @@ #include <libintl.h> #define _(STRING) gettext(STRING) +#ifndef discard_const +#define discard_const(ptr) ((void *)((uintptr_t)(ptr))) +#endif + int init_gettext(void); #endif /* __IPA_CLIENT_COMMON_H */ |