From: Marko Kreen Date: Mon, 29 Dec 2008 15:57:55 +0000 (+0000) Subject: win32: make asynctest compile again X-Git-Tag: pgbouncer_1_3_rc1~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62f191fe59b139214cb9238cf96135fc5291d32d;p=pgbouncer win32: make asynctest compile again By Hiroshi Saito --- diff --git a/test/Makefile b/test/Makefile index eb39d41..c9bfbc7 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 794218d..d6777cb 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