]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Merge getopt patch from Gnulib
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 24 Aug 2022 04:16:40 +0000 (21:16 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 24 Aug 2022 04:58:39 +0000 (21:58 -0700)
* posix/getopt.c [!_LIBC]: Merge _WIN32 patch from Gnulib
so that these source files are identical.
This makes no difference for glibc.

posix/getopt.c

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