Skip to content

Commit f744519

Browse files
committed
Harden be-gssapi-common.h for headerscheck
Surround the contents with a test that the feature is enabled by configure, to silence header checking tools on systems without GSSAPI installed. Backpatch to 12, where the file appeared. Discussion: https://postgr.es/m/202111161709.u3pbx5lxdimt@alvherre.pgsql
1 parent 1a6f5a0 commit f744519

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/include/libpq/be-gssapi-common.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
#ifndef BE_GSSAPI_COMMON_H
1515
#define BE_GSSAPI_COMMON_H
1616

17+
#ifdef ENABLE_GSS
18+
1719
#if defined(HAVE_GSSAPI_H)
1820
#include <gssapi.h>
1921
#else
@@ -23,4 +25,6 @@
2325
extern void pg_GSS_error(const char *errmsg,
2426
OM_uint32 maj_stat, OM_uint32 min_stat);
2527

28+
#endif /* ENABLE_GSS */
29+
2630
#endif /* BE_GSSAPI_COMMON_H */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy