From 40f32f351a8c5eda1b20f499552e2139de9fe268 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 12 Jan 2005 21:37:54 +0000 Subject: [PATCH] Add conditional inclusion of to support old 'heimdal' version of Kerberos. Per report from Reinhard Max. --- src/backend/libpq/auth.c | 6 +++++- src/interfaces/libpq/fe-auth.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c index 5c4f208a52..978aae7446 100644 --- a/src/backend/libpq/auth.c +++ b/src/backend/libpq/auth.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.121 2004/12/31 21:59:50 pgsql Exp $ + * $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.122 2005/01/12 21:37:53 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -150,6 +150,10 @@ pg_krb4_recvauth(Port *port) */ #include +/* Some old versions of Kerberos do not include in */ +#if !defined(__COM_ERR_H) && !defined(__COM_ERR_H__) +#include +#endif /* * pg_an_to_ln -- return the local name corresponding to an authentication diff --git a/src/interfaces/libpq/fe-auth.c b/src/interfaces/libpq/fe-auth.c index f326335bf9..065eba3581 100644 --- a/src/interfaces/libpq/fe-auth.c +++ b/src/interfaces/libpq/fe-auth.c @@ -10,7 +10,7 @@ * exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes). * * IDENTIFICATION - * $PostgreSQL: pgsql/src/interfaces/libpq/fe-auth.c,v 1.98 2005/01/04 23:18:25 tgl Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/fe-auth.c,v 1.99 2005/01/12 21:37:54 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -243,6 +243,10 @@ pg_krb4_sendauth(char *PQerrormsg, int sock, */ #include +/* Some old versions of Kerberos do not include in */ +#if !defined(__COM_ERR_H) && !defined(__COM_ERR_H__) +#include +#endif /* * pg_an_to_ln -- return the local name corresponding to an authentication -- 2.40.0