diff options
| author | Magnus Hagander <magnus@hagander.net> | 2007-07-12 14:10:39 +0000 |
|---|---|---|
| committer | Magnus Hagander <magnus@hagander.net> | 2007-07-12 14:10:39 +0000 |
| commit | 67719940585f36617a15dac16a32744a18711ede (patch) | |
| tree | 0062242a3167714a82601b9ff1c24ed607992b68 /configure.in | |
| parent | 05c4d8f783d57e7ea83fb158e3637908d9f08c28 (diff) | |
| download | postgresql-67719940585f36617a15dac16a32744a18711ede.tar.gz | |
Fix freenig of names in Kerberos when using MIT - need to use the
free function provided in the Kerberos library.
This fixes a very hard to track down heap corruption on windows
when using debug runtimes.
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.in b/configure.in index d3bec75e6c..c01ae3fcd7 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -dnl $PostgreSQL: pgsql/configure.in,v 1.518 2007/07/10 16:41:01 tgl Exp $ +dnl $PostgreSQL: pgsql/configure.in,v 1.519 2007/07/12 14:10:39 mha Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -965,6 +965,15 @@ if test "$with_krb5" = yes; then [AC_MSG_ERROR([could not determine how to extract Kerberos 5 error messages])], [#include <krb5.h>])], [#include <krb5.h>]) + +# Win32 requires headers to be loaded for __stdcall, so can't use +# AC_CHECK_FUNCS here. + AC_MSG_CHECKING(for krb5_free_unparsed_name) + AC_TRY_LINK([#include <krb5.h>], + [krb5_free_unparsed_name(NULL,NULL);], + [AC_DEFINE(HAVE_KRB5_FREE_UNPARSED_NAME, 1, [Define to 1 if you have krb5_free_unparsed_name]) +AC_MSG_RESULT(yes)], + [AC_MSG_RESULT(no)]) fi |
