Skip to content

Commit e145891

Browse files
committed
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.
1 parent e3e3087 commit e145891

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/test/isolation/isolationtester.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
#ifndef WIN32
1515
#include <sys/time.h>
1616
#include <unistd.h>
17+
18+
#ifdef HAVE_GETOPT_H
19+
#include <getopt.h>
20+
#endif
21+
22+
#else
23+
int getopt(int argc, char *const argv[], const char *optstring);
1724
#endif /* ! WIN32 */
1825

1926
#ifdef HAVE_SYS_SELECT_H
@@ -25,6 +32,8 @@
2532

2633
#include "isolationtester.h"
2734

35+
extern int optind;
36+
2837
#define PREP_WAITING "isolationtester_waiting"
2938

3039
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy