summaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/ecpg/ecpglib/ecpglib_extern.h1
-rw-r--r--src/interfaces/ecpg/test/printf_hack.h2
-rw-r--r--src/interfaces/libpq/fe-gssapi-common.h5
3 files changed, 7 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/ecpglib/ecpglib_extern.h b/src/interfaces/ecpg/ecpglib/ecpglib_extern.h
index f9336a0c23d..6cb7ab1a192 100644
--- a/src/interfaces/ecpg/ecpglib/ecpglib_extern.h
+++ b/src/interfaces/ecpg/ecpglib/ecpglib_extern.h
@@ -8,6 +8,7 @@
#include "sqlda-native.h"
#include "sqlda-compat.h"
#include "ecpg_config.h"
+#include "ecpgtype.h"
#ifndef CHAR_BIT
#include <limits.h>
diff --git a/src/interfaces/ecpg/test/printf_hack.h b/src/interfaces/ecpg/test/printf_hack.h
index ef584c0d548..1c061d5e87e 100644
--- a/src/interfaces/ecpg/test/printf_hack.h
+++ b/src/interfaces/ecpg/test/printf_hack.h
@@ -2,7 +2,7 @@
* print_double(x) has the same effect as printf("%g", x), but is intended
* to produce the same formatting across all platforms.
*/
-static void
+static inline void
print_double(double x)
{
#ifdef WIN32
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 */