Skip to content

Commit 7928d9f

Browse files
committed
Add opterr and optopt to Windows headers
Until now we only had optind defined in the header. Since we are using the BSD getopt variant add opterr and optopt. Fixes: 3ec06ea ("ovn-nbctl: Initial support for daemon mode.") Signed-off-by: Alin Gabriel Serdean <[email protected]> Acked-by: Ben Pfaff <[email protected]>
1 parent c8efec6 commit 7928d9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/windows/getopt.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include <unistd.h>
3434

3535
extern char *optarg;
36-
extern int optind;
36+
extern int optind, opterr, optopt;
3737

3838
/*
3939
* Gnu like getopt_long() and BSD4.4 getsubopt()/optreset extensions

0 commit comments

Comments
 (0)