From 65a513c2490983e1b95710a805e7cb71956120bc Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Thu, 12 Jul 2007 14:36:52 +0000 Subject: Support GSSAPI builds where the header is and not , such as OpenBSD (possibly all Heimdal). Stefan Kaltenbrunner --- src/interfaces/libpq/fe-auth.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/interfaces/libpq/fe-auth.c') diff --git a/src/interfaces/libpq/fe-auth.c b/src/interfaces/libpq/fe-auth.c index f19ef07671..ca92d44f8a 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.125 2007/07/12 14:10:39 mha Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/fe-auth.c,v 1.126 2007/07/12 14:36:52 mha Exp $ * *------------------------------------------------------------------------- */ @@ -329,7 +329,11 @@ pg_krb5_sendauth(char *PQerrormsg, int sock, const char *hostname, const char *s /* * GSSAPI authentication system. */ +#if defined(HAVE_GSSAPI_H) +#include +#else #include +#endif #ifdef WIN32 /* -- cgit v1.2.1