From e145891c984540a86788f88b604c766c934b17ea Mon Sep 17 00:00:00 2001
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
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 822739ec3bb..38f1e78dc5c 100644
--- a/src/test/isolation/isolationtester.c
+++ b/src/test/isolation/isolationtester.c
@@ -14,6 +14,13 @@
 #ifndef WIN32
 #include <sys/time.h>
 #include <unistd.h>
+
+#ifdef HAVE_GETOPT_H
+#include <getopt.h>
+#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"
 
 /*
-- 
GitLab