- Add missing header files in autoconf check and
- Add LDAP_DEPRECATED to include prototypes for deprecated ldap functions
Patch is created by Vladimir Petko.
AC_CACHE_VAL(pgac_cv_snprintf_long_long_int_format,
[for pgac_format in '%lld' '%qd' '%I64d'; do
AC_TRY_RUN([#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
typedef long long int ac_int64;
#define INT64_FORMAT "$pgac_format"
#include "protocol/pool_process_query.h"
#ifdef USE_LDAP
+#define LDAP_DEPRECATED 1
#include <ldap.h>
#endif
#endif /* USE_PAM */
#ifdef USE_LDAP
+#define LDAP_DEPRECATED 1
#include <ldap.h>
static POOL_STATUS CheckLDAPAuth(POOL_CONNECTION *frontend);
#include "pool.h"
#ifdef USE_LDAP
+#define LDAP_DEPRECATED 1
#include <ldap.h>
#endif