Merge getopt patch from Gnulib

* posix/getopt.c [!_LIBC]: Merge _WIN32 patch from Gnulib
so that these source files are identical.
This makes no difference for glibc.
This commit is contained in:
Paul Eggert 2022-08-23 21:16:40 -07:00
parent 464138e904
commit 06e4033c83
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,8 @@
# define _(msgid) gettext (msgid) # define _(msgid) gettext (msgid)
/* When used standalone, flockfile and funlockfile might not be /* When used standalone, flockfile and funlockfile might not be
available. */ available. */
# ifndef _POSIX_THREAD_SAFE_FUNCTIONS # if (!defined _POSIX_THREAD_SAFE_FUNCTIONS \
|| (defined _WIN32 && ! defined __CYGWIN__))
# define flockfile(fp) /* nop */ # define flockfile(fp) /* nop */
# define funlockfile(fp) /* nop */ # define funlockfile(fp) /* nop */
# endif # endif