Skip to content

Commit 084cae5

Browse files
committed
Fix compilation with --with-gssapi --without-openssl
The #define is spelled ENABLE_GSS, not USE_GSS. Introduced in commit 05fd30c, reported by Thomas Munro. Discussion: https://www.postgresql.org/message-id/CA%2BhUKG%2BHRTtB%2Bx%2BKKKj_cfX6sNhbeGuqmGxjGMwdVPG7YGFP8w@mail.gmail.com
1 parent 0a5f229 commit 084cae5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/libpq/fe-connect.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ static const char short_uri_designator[] = "postgres://";
393393

394394
static bool connectOptions1(PGconn *conn, const char *conninfo);
395395
static bool init_allowed_encryption_methods(PGconn *conn);
396-
#if defined(USE_SSL) || defined(USE_GSS)
396+
#if defined(USE_SSL) || defined(ENABLE_GSS)
397397
static int encryption_negotiation_failed(PGconn *conn);
398398
#endif
399399
static bool connection_failed(PGconn *conn);
@@ -4318,7 +4318,7 @@ init_allowed_encryption_methods(PGconn *conn)
43184318
*
43194319
* conn->current_enc_method is updated to the next method to try.
43204320
*/
4321-
#if defined(USE_SSL) || defined(USE_GSS)
4321+
#if defined(USE_SSL) || defined(ENABLE_GSS)
43224322
static int
43234323
encryption_negotiation_failed(PGconn *conn)
43244324
{

0 commit comments

Comments
 (0)