w32: Provide getopt() for Visual Studio

getopt() does not exist in the Visual Studio 2019 CRT.  Provide one.

Signed-off-by: Ron Koenderink <rkoenderink@gmail.com
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Ron Koenderink 2021-01-19 12:48:23 -06:00 committed by Markus Armbruster
parent a164390d1f
commit 8447fc1cd2
4 changed files with 164 additions and 7 deletions

View file

@ -81,8 +81,8 @@ edatadir := $(datadir)/empire
builtindir := $(edatadir)/builtin
einfodir := $(edatadir)/info.nr
ehtmldir := $(edatadir)/info.html
client/w32 := arpa/inet.h netdb.h netinet/in.h sys/time.h sys/socket.h \
sys/uio.h unistd.h w32io.c w32sockets.c w32types.h
client/w32 := arpa/inet.h getopt.c netdb.h netinet/in.h sys/time.h \
sys/socket.h sys/uio.h unistd.h w32io.c w32sockets.c w32types.h
# Abbreviate make output
# Run make with a V=1 parameter for full output.