aboutsummaryrefslogtreecommitdiff
path: root/src/test/examples/testlibpq3.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2009-12-31 00:16:47 +0000
committerAndrew Dunstan <andrew@dunslane.net>2009-12-31 00:16:47 +0000
commit31cf893088cf643b553918b2a93164c95cf6a903 (patch)
tree2be177076ee17340a116301315c60077658f319d /src/test/examples/testlibpq3.c
parent3c505ef5777351e051ff11e981ddbb3da6fb6448 (diff)
downloadpostgresql-31cf893088cf643b553918b2a93164c95cf6a903.tar.gz
postgresql-31cf893088cf643b553918b2a93164c95cf6a903.zip
enable examples to compile on Windows. patch from Hiroshi Saito.
Diffstat (limited to 'src/test/examples/testlibpq3.c')
-rw-r--r--src/test/examples/testlibpq3.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test/examples/testlibpq3.c b/src/test/examples/testlibpq3.c
index ef573802a5d..ab035887f7b 100644
--- a/src/test/examples/testlibpq3.c
+++ b/src/test/examples/testlibpq3.c
@@ -1,5 +1,5 @@
/*
- * $PostgreSQL: pgsql/src/test/examples/testlibpq3.c,v 1.16 2009/06/11 14:49:15 momjian Exp $
+ * $PostgreSQL: pgsql/src/test/examples/testlibpq3.c,v 1.17 2009/12/31 00:16:47 adunstan Exp $
*
*
* testlibpq3.c
@@ -25,8 +25,14 @@
* t = (8 bytes) 'ho there'
* b = (5 bytes) \004\003\002\001\000
*/
+
+#ifdef WIN32
+#include <windows.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <string.h>
#include <sys/types.h>
#include "libpq-fe.h"