Closed sezero closed 3 years ago
replace outdated getopt.c, getopt.h and getopt1.c with 2-clause BSD licensed getopt source from OpenBSD, build them only if system libc does not have getopt_long().
This looks good to me. (Tested with MSYS2 and Linux, both with and without HAVE_GETOPT_LONG defined.)
Thanks. Applied.
replace outdated getopt.c, getopt.h and getopt1.c with 2-clause BSD licensed getopt source from OpenBSD, build them only if system libc does not have getopt_long().