Sry guys, it seems that the ml bot messed up with my mail. Here is my original request :<br><br><div class="gmail_quote">On Sat, Oct 30, 2010 at 7:28 PM, Julien Dessaux <span dir="ltr">&lt;<a href="mailto:judessaux@gmail.com">judessaux@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi GHC folks,<br><br>    I&#39;m using the LDAP lib for one of my projects and I found a problem while building it on an OpenBSD system. It wouldn&#39;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&#39;s named LDAP_PROXY_AUTHZ_FAILURE.<br>


<br>    I attached the diff I wrote in order to compile the lib on OpenBSD, but it&#39;s not a patch I can submit cause it now won&#39;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?<br>


<br>Thanks in advance for your help,<br>--<br><font color="#888888">Julien Dessaux<br><br>
</font></blockquote></div><br>