#include "php_ldap.h"
#ifdef PHP_WIN32
-/* TODO: check if this file is installed on *nix as well */
-#include <openldap/portable.h>
#include <string.h>
#if HAVE_NSLDAP
#include <winsock2.h>
#endif
-#ifndef _strdup
-#define strdup _strdup
+#ifndef strdup
+# define strdup _strdup
#endif
#undef WINDOWS
#undef strcasecmp
php_info_print_table_row(2, "Total Links", tmp);
-#ifdef OPENLDAP_VERSION
- snprintf(tmp, 31, "%s", OPENLDAP_VERSION);
+#ifdef LDAP_VENDOR_VERSION_MAJOR
+ snprintf(tmp, 31, "%d.%d.%d", LDAP_VENDOR_VERSION_MAJOR,
+ LDAP_VENDOR_VERSION_MINOR, LDAP_VENDOR_VERSION_PATCH);
php_info_print_table_row(2, "Version", tmp);
#endif