diff options
author | Alvaro Herrera | 2011-11-04 01:54:58 +0000 |
---|---|---|
committer | Alvaro Herrera | 2011-11-04 02:33:48 +0000 |
commit | e145891c984540a86788f88b604c766c934b17ea (patch) | |
tree | 8d059fe14db80014f3e357443724e8d1d6f3b5fd /src/test/isolation/isolationtester.c | |
parent | e3e3087d8717c26cd1c4581ba29274ac214eb816 (diff) |
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.
Diffstat (limited to 'src/test/isolation/isolationtester.c')
-rw-r--r-- | src/test/isolation/isolationtester.c | 9 |
1 files changed, 9 insertions, 0 deletions
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" /* |