diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2011-11-03 23:54:58 -0200 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2011-11-04 00:33:48 -0200 |
commit | e145891c984540a86788f88b604c766c934b17ea (patch) | |
tree | 8d059fe14db80014f3e357443724e8d1d6f3b5fd | |
parent | e3e3087d8717c26cd1c4581ba29274ac214eb816 (diff) | |
download | postgresql-e145891c984540a86788f88b604c766c934b17ea.tar.gz postgresql-e145891c984540a86788f88b604c766c934b17ea.zip |
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.
-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" /* |