From: Alvaro Herrera Date: Fri, 4 Nov 2011 01:54:58 +0000 (-0200) Subject: Unbreak isolationtester on Win32 X-Git-Tag: REL9_2_BETA1~876 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e145891c984540a86788f88b604c766c934b17ea;p=postgresql Unbreak isolationtester on Win32 I broke it in a previous commit because I neglected to install the necessary incantations to have getopt() work on Windows. Per red blots in buildfarm. --- diff --git a/src/test/isolation/isolationtester.c b/src/test/isolation/isolationtester.c index 822739ec3b..38f1e78dc5 100644 --- a/src/test/isolation/isolationtester.c +++ b/src/test/isolation/isolationtester.c @@ -14,6 +14,13 @@ #ifndef WIN32 #include #include + +#ifdef HAVE_GETOPT_H +#include +#endif + +#else +int getopt(int argc, char *const argv[], const char *optstring); #endif /* ! WIN32 */ #ifdef HAVE_SYS_SELECT_H @@ -25,6 +32,8 @@ #include "isolationtester.h" +extern int optind; + #define PREP_WAITING "isolationtester_waiting" /*