lib: Update getopt.c from Gnulib with modifications.
commit04bd86a4b010d43c6a016a3857ecb38dc1d5b024
authorJia Tan <jiat0218@gmail.com>
Fri, 22 Sep 2023 16:27:23 +0000 (23 00:27 +0800)
committerJia Tan <jiat0218@gmail.com>
Fri, 22 Sep 2023 16:27:23 +0000 (23 00:27 +0800)
treee154d297777d8d22cbe2c410749560909aeb95e2
parent56b42be7287844db20b3a3bc1372c6ae8c040d63
lib: Update getopt.c from Gnulib with modifications.

The code maintains the prior modifications of conditionally including
config.h and disabling NLS support.

_GL_UNUSED is repalced with the simple cast to void trick. _GL_UNUSED
is only used for these two parameters so its simpler than having to
define it.
lib/getopt.c