From: Tom Lane Date: Wed, 12 Jan 2005 21:37:54 +0000 (+0000) Subject: Add conditional inclusion of to support old 'heimdal' X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=5a657bb8513e7dfb871b232ecdecca64f5e159a3;p=users%2Fbernd%2Fpostgres.git Add conditional inclusion of to support old 'heimdal' version of Kerberos. Per report from Reinhard Max. --- diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c index 1af1c1f528..454edb15bc 100644 --- a/src/backend/libpq/auth.c +++ b/src/backend/libpq/auth.c @@ -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 ad398f0499..a6dceea824 100644 --- a/src/interfaces/libpq/fe-auth.c +++ b/src/interfaces/libpq/fe-auth.c @@ -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