summaryrefslogtreecommitdiff
path: root/include/windows/automake.mk
diff options
context:
space:
mode:
authorGurucharan Shetty <gshetty@nicira.com>2014-01-27 08:52:57 -0800
committerGurucharan Shetty <gshetty@nicira.com>2014-01-27 10:33:45 -0800
commit9d0581fdf22bec79fc09cddb29808c89d16f0266 (patch)
treeeca828111e63ab353c71eb506ce338557209b908 /include/windows/automake.mk
parenta3ea1821d67e7dc8af32d7a55b5857014ec4583f (diff)
downloadopenvswitch-9d0581fdf22bec79fc09cddb29808c89d16f0266.tar.gz
getopt_long: Copy over the implementation from netbsd.
Windows does not have a getopt_long function. This commit copies over the getopt_long implementation from netbsd with some minor modifications and is used only on Windows platform. Modifications on top of the version in NetBSD repo. * Remove header files not available in Visual Studio. * Remove some unwanted #defines. * Add Open vSwitch specific header files like config.h, vlog.h, util.h * Add the following #define's define __UNCONST(a) ((void *)(unsigned long)(const void *)(a)) define _DIAGASSERT(q) ovs_assert(q) define warnx VLOG_WARN * Add extern declaration in getopt.h for optarg, optind. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'include/windows/automake.mk')
-rw-r--r--include/windows/automake.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/windows/automake.mk b/include/windows/automake.mk
index 07ada1b33..2771270ad 100644
--- a/include/windows/automake.mk
+++ b/include/windows/automake.mk
@@ -6,5 +6,6 @@
# without warranty of any kind.
noinst_HEADERS += \
- include/windows/windefs.h \
- include/windows/syslog.h
+ include/windows/getopt.h \
+ include/windows/syslog.h \
+ include/windows/windefs.h