Content-Length: 268165 | pFad | http://github.com/postgrespro/postgres/commit/f744519326e1ce4774d0966f7848601a8327eeaa

64 Harden be-gssapi-common.h for headerscheck · postgrespro/postgres@f744519 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/f744519326e1ce4774d0966f7848601a8327eeaa

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy