summaryrefslogtreecommitdiff
path: root/libpq/tests/conninfo/postgres_fe.h
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-11-30 22:37:25 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-12-06 15:11:04 +0300
commitf1f39911e0d2d88c98eae96a3eb14a53c664206f (patch)
tree4cf4e3a84d895f59323d3b6ab4bfab38b3cab489 /libpq/tests/conninfo/postgres_fe.h
parentfc9499b8a7b7a3e350bfabf2cd6ae0bc13f04bea (diff)
Upgrade to 12.1
Diffstat (limited to 'libpq/tests/conninfo/postgres_fe.h')
-rw-r--r--libpq/tests/conninfo/postgres_fe.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/libpq/tests/conninfo/postgres_fe.h b/libpq/tests/conninfo/postgres_fe.h
new file mode 100644
index 0000000..0dd2ed2
--- /dev/null
+++ b/libpq/tests/conninfo/postgres_fe.h
@@ -0,0 +1,19 @@
+/* file : tests/conninfo/postgres_fe.h
+ * copyright : Copyright (c) 2016-2019 Code Synthesis Ltd
+ * license : PostgreSQL License; see accompanying COPYRIGHT file
+ */
+
+/*
+ * The upstream's uri-regress.c includes src/include/postgres_fe.h that is
+ * located in libpq/include/ in our source tree. This file is not installed,
+ * so to keep the test as a subproject and be able to test against the
+ * installed libpq library we replace it with the header stub, containing the
+ * bare minimum that is required the test to compile.
+ */
+#ifndef TESTS_CONNINFO_POSTGRES_FE_H
+#define TESTS_CONNINFO_POSTGRES_FE_H
+
+#include <stdbool.h>
+#include <string.h>
+
+#endif /* TESTS_CONNINFO_POSTGRES_FE_H */