Skip to content

Commit

Permalink
win32: make asynctest compile again
Browse files Browse the repository at this point in the history
By Hiroshi Saito
  • Loading branch information
markokr committed Dec 29, 2008
1 parent 5026885 commit 62f191f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions test/asynctest.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

#include "system.h"

#ifdef WIN32
#undef strerror
#undef main
#endif

#include <getopt.h>
#include <event.h>
#include <libpq-fe.h>
Expand Down Expand Up @@ -513,6 +518,7 @@ int main(int argc, char *argv[])
char *cstr = NULL;
int numcon = 50;
#ifdef WIN32
int wsresult;
WSADATA wsaData;
#endif

Expand Down

0 comments on commit 62f191f

Please sign in to comment.