diff options
author | Noah Misch <noah@leadboat.com> | 2018-02-23 11:24:04 -0800 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2018-02-23 11:24:08 -0800 |
commit | 269dce481c36d0ac0b9bb14b48f9f4d59ac5faf1 (patch) | |
tree | 103f6e42293a5101282bc58de9fde3f6a0e17eb2 /doc/src | |
parent | 7dc5f316fd48623bb593e54c482d8b3861333f92 (diff) |
Synchronize doc/ copies of src/test/examples/.
This is mostly cosmetic, but it might fix build failures, on some
platform, when copying from the documentation.
Back-patch to 9.3 (all supported versions).
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/libpq.sgml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index d3af0c27a63..f2d4d0d9bc3 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -7908,13 +7908,16 @@ testlibpq.o(.text+0xa4): undefined reference to `PQerrorMessage' <programlisting> <![CDATA[ /* + * src/test/examples/testlibpq.c + * + * * testlibpq.c * * Test the C version of libpq, the PostgreSQL frontend library. */ #include <stdio.h> #include <stdlib.h> -#include <libpq-fe.h> +#include "libpq-fe.h" static void exit_nicely(PGconn *conn) @@ -8035,6 +8038,9 @@ main(int argc, char **argv) <programlisting> <![CDATA[ /* + * src/test/examples/testlibpq2.c + * + * * testlibpq2.c * Test of the asynchronous notification interface * @@ -8067,6 +8073,10 @@ main(int argc, char **argv) #include <errno.h> #include <sys/time.h> #include <sys/types.h> +#ifdef HAVE_SYS_SELECT_H +#include <sys/select.h> +#endif + #include "libpq-fe.h" static void @@ -8178,6 +8188,9 @@ main(int argc, char **argv) <programlisting> <![CDATA[ /* + * src/test/examples/testlibpq3.c + * + * * testlibpq3.c * Test out-of-line parameters and binary I/O. * |