diff --git a/test/Makefile b/test/Makefile index eb39d4193bd3..c9bfbc7c4235 100644 --- a/test/Makefile +++ b/test/Makefile @@ -8,6 +8,10 @@ CPPFLAGS += -I../include $(PGINC) LDFLAGS += $(PGLIB) LIBS := -lpq $(LIBS) +ifeq ($(PORTNAME),win32) +CPPFLAGS += -I../win32 +endif + all: asynctest asynctest: asynctest.c diff --git a/test/asynctest.c b/test/asynctest.c index 794218dbc515..d6777cbfb1df 100644 --- a/test/asynctest.c +++ b/test/asynctest.c @@ -8,6 +8,11 @@ #include "system.h" +#ifdef WIN32 +#undef strerror +#undef main +#endif + #include #include #include @@ -513,6 +518,7 @@ int main(int argc, char *argv[]) char *cstr = NULL; int numcon = 50; #ifdef WIN32 + int wsresult; WSADATA wsaData; #endif