Fixing LDAP lib compilation on OpenBSD

Julien Dessaux judessaux at gmail.com
Sun Oct 31 14:02:53 EDT 2010


Sry guys, it seems that the ml bot messed up with my mail. Here is my
original request :

On Sat, Oct 30, 2010 at 7:28 PM, Julien Dessaux <judessaux at gmail.com> wrote:

> Hi GHC folks,
>
>     I'm using the LDAP lib for one of my projects and I found a problem
> while building it on an OpenBSD system. It wouldn't compile because there is
> a macro named differently in the ldap.h include file. Under linux, this
> macro is named LDAP_X_PROXY_AUTHZ_FAILURE but on OpenBSD (and probably other
> BSD flavours), it's named LDAP_PROXY_AUTHZ_FAILURE.
>
>     I attached the diff I wrote in order to compile the lib on OpenBSD, but
> it's not a patch I can submit cause it now won't compile on Linux. How can I
> amend this in order to have a code that would compile on both systems? How
> is it possible to specify such conditional system dependent stuff for a C
> binding?
>
> Thanks in advance for your help,
> --
> Julien Dessaux
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20101031/2b67fac0/attachment.html


More information about the Glasgow-haskell-users mailing list