diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2019-05-31 11:45:33 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2019-05-31 11:45:33 -0400 |
commit | 7640f9312321ceba2af61f7017da7e64f0f7b667 (patch) | |
tree | bd42ca762cdd5769c23f06c7888bd0f72e351402 /src/interfaces/libpq/fe-gssapi-common.h | |
parent | 9e58705a7f9728f10b2e0f0c9adc6e6ecff7486e (diff) |
Fix assorted header files that failed to compile standalone.
We have a longstanding project convention that all .h files should
be includable with no prerequisites other than postgres.h. This is
tested/relied-on by cpluspluscheck. However, cpluspluscheck has not
historically been applied to most headers outside the src/include
tree, with the predictable consequence that some of them don't work.
Fix that, usually by adding missing #include dependencies.
The change in printf_hack.h might require some explanation: without
it, my C++ compiler whines that the function is unused. There's
not so many call sites that "inline" is going to cost much, and
besides all the callers are in test code that we really don't care
about the size of.
There's no actual bugs being fixed here, so I see no need to back-patch.
Discussion: https://postgr.es/m/b517ec3918d645eb950505eac8dd434e@gaz-is.ru
Diffstat (limited to 'src/interfaces/libpq/fe-gssapi-common.h')
-rw-r--r-- | src/interfaces/libpq/fe-gssapi-common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/interfaces/libpq/fe-gssapi-common.h b/src/interfaces/libpq/fe-gssapi-common.h index deb010e4066..ebe24f7ca01 100644 --- a/src/interfaces/libpq/fe-gssapi-common.h +++ b/src/interfaces/libpq/fe-gssapi-common.h @@ -16,8 +16,13 @@ #include "libpq-fe.h" #include "libpq-int.h" +#ifdef ENABLE_GSS + void pg_GSS_error(const char *mprefix, PGconn *conn, OM_uint32 maj_stat, OM_uint32 min_stat); bool pg_GSS_have_ccache(gss_cred_id_t *cred_out); int pg_GSS_load_servicename(PGconn *conn); + +#endif + #endif /* FE_GSSAPI_COMMON_H */ |