I've searched for portable.h but couldn't find it in /usr/include or any of its subdirectories. I've also done "grep -r LDAP_VALID /usr/include/*" and that search did not return any results either. I will keep looking for it though and I would be grateful to anyone who could tell us more. I use Ubuntu 10.04 LTS.
Regards, Khaled
2011/10/24 Hallvard B Furuseth h.b.furuseth@usit.uio.no:
Whoops...
If you wish to use the macro directly: Configure the OpenLDAP source tree (to generate internal headers), then
#include "<openldap source>/include/portable.h"
#include <openldap source>/libraries/libldap/ldap-int.h.
At least that's what the OpenLDAP source files do.
-- Hallvard