File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ subdir = src/test/examples
66top_builddir = ../../..
77include $(top_builddir ) /src/Makefile.global
88
9+ ifeq ($(PORTNAME ) , win32)
10+ LDLIBS += -lws2_32
11+ endif
12+
913override CPPFLAGS := -I$(libpq_srcdir ) $(CPPFLAGS )
1014override LDLIBS := $(libpq_pgport ) $(LDLIBS )
1115
Original file line number Diff line number Diff line change 11/*
2- * $PostgreSQL: pgsql/src/test/examples/testlibpq2.c,v 1.15 2009/06/11 14:49:15 momjian Exp $
2+ * $PostgreSQL: pgsql/src/test/examples/testlibpq2.c,v 1.16 2009/12/31 00:16:47 adunstan Exp $
33 *
44 *
55 * testlibpq2.c
2424 *
2525 * INSERT INTO TBL1 VALUES (10);
2626 */
27+
28+ #ifdef WIN32
29+ #include <windows.h>
30+ #endif
2731#include <stdio.h>
2832#include <stdlib.h>
2933#include <string.h>
3034#include <errno.h>
3135#include <sys/time.h>
36+ #include <sys/types.h>
3237#include "libpq-fe.h"
3338
3439static void
Original file line number Diff line number Diff line change 11/*
2- * $PostgreSQL: pgsql/src/test/examples/testlibpq3.c,v 1.16 2009/06/11 14:49:15 momjian Exp $
2+ * $PostgreSQL: pgsql/src/test/examples/testlibpq3.c,v 1.17 2009/12/31 00:16:47 adunstan Exp $
33 *
44 *
55 * testlibpq3.c
2525 * t = (8 bytes) 'ho there'
2626 * b = (5 bytes) \004\003\002\001\000
2727 */
28+
29+ #ifdef WIN32
30+ #include <windows.h>
31+ #endif
32+
2833#include <stdio.h>
2934#include <stdlib.h>
35+ #include <stdint.h>
3036#include <string.h>
3137#include <sys/types.h>
3238#include "libpq-fe.h"
You can’t perform that action at this time.
0 commit comments