summaryrefslogtreecommitdiff
path: root/include/windows
diff options
context:
space:
mode:
authorAlin Gabriel Serdean <aserdean@ovn.org>2018-07-31 15:08:13 +0300
committerAlin Gabriel Serdean <aserdean@ovn.org>2018-08-01 22:23:13 +0300
commit7928d9fcf57b183c6ebfbdc759a8df879a7ae6e4 (patch)
treefbb11d0185550dc4201c64805a46127eda3704c4 /include/windows
parentc8efec6ef780c51d068fead07098a9ebbda231c2 (diff)
downloadopenvswitch-7928d9fcf57b183c6ebfbdc759a8df879a7ae6e4.tar.gz
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: 3ec06ea9c668 ("ovn-nbctl: Initial support for daemon mode.") Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'include/windows')
-rw-r--r--include/windows/getopt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/windows/getopt.h b/include/windows/getopt.h
index 9b526ff73..fc43be868 100644
--- a/include/windows/getopt.h
+++ b/include/windows/getopt.h
@@ -33,7 +33,7 @@
#include <unistd.h>
extern char *optarg;
-extern int optind;
+extern int optind, opterr, optopt;
/*
* Gnu like getopt_long() and BSD4.4 getsubopt()/optreset extensions