aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-auth.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-01-12 21:37:54 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-01-12 21:37:54 +0000
commit40f32f351a8c5eda1b20f499552e2139de9fe268 (patch)
treeb5529c4acbce57cc7ae387320206f6bc34549e4b /src/interfaces/libpq/fe-auth.c
parent2ec1aa4cb8cb053d197480eaa74dac07857585f2 (diff)
downloadpostgresql-40f32f351a8c5eda1b20f499552e2139de9fe268.tar.gz
postgresql-40f32f351a8c5eda1b20f499552e2139de9fe268.zip
Add conditional inclusion of <com_err.h> to support old 'heimdal'
version of Kerberos. Per report from Reinhard Max.
Diffstat (limited to 'src/interfaces/libpq/fe-auth.c')
-rw-r--r--src/interfaces/libpq/fe-auth.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/interfaces/libpq/fe-auth.c b/src/interfaces/libpq/fe-auth.c
index f326335bf91..065eba35814 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 <krb5.h>
+/* Some old versions of Kerberos do not include <com_err.h> in <krb5.h> */
+#if !defined(__COM_ERR_H) && !defined(__COM_ERR_H__)
+#include <com_err.h>
+#endif
/*
* pg_an_to_ln -- return the local name corresponding to an authentication