]> The Tcpdump Group git mirrors - libpcap/commit
Add a "getopt.h" header and include it instead of <unistd.h> on Windows.
authorGuy Harris <[email protected]>
Mon, 2 Nov 2015 00:24:47 +0000 (16:24 -0800)
committerGuy Harris <[email protected]>
Mon, 2 Nov 2015 00:25:30 +0000 (16:25 -0800)
commita77491e209e49a16cda89508e86cf71c04d6a2c4
tree4de74d3c42651543192c3ec8527b4fdd8962d9c5
parent4093bb2c65f88be21036e7f443eeb0abd5ce3ff1
Add a "getopt.h" header and include it instead of <unistd.h> on Windows.

We include <unistd.h> for getopt(), but, on Windows, we supply our own
getopt() (as it's a UN*X API), so supply our own header and include that
instead.

While we're at it, mark the copyright strings as unused (to squelch
compiler warnings), and don't include the headers for select() or poll()
in capturetest.c, as we don't use those APIs there (that's what
selpolltest(), which is UN*X-only, is for).  <unistd.h> or "getopt.h"
should declare the getopt() external variables, so don't declare them
ourselves.
Makefile.in
missing/getopt.h [new file with mode: 0644]
tests/can_set_rfmon_test.c
tests/capturetest.c
tests/filtertest.c
tests/opentest.c
tests/reactivatetest.c
tests/selpolltest.c
tests/valgrindtest.c