From e145891c984540a86788f88b604c766c934b17ea Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Thu, 3 Nov 2011 23:54:58 -0200 Subject: [PATCH] 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. --- src/test/isolation/isolationtester.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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" /* -- 2.40.0