* lib/getopt.c (flockfile, funlockfile): Define on mingw.
Problem reported by Daniel P. Berrage in:
http://lists.gnu.org/archive/html/bug-gnulib/2017-05/msg00086.html
+2017-05-11 Paul Eggert <eggert@cs.ucla.edu>
+
+ getopt-posix: port to mingw
+ * lib/getopt.c (flockfile, funlockfile): Define on mingw.
+ Problem reported by Daniel P. Berrage in:
+ http://lists.gnu.org/archive/html/bug-gnulib/2017-05/msg00086.html
+
2017-05-11 Bruno Haible <bruno@clisp.org>
gettimeofday: Increase precision on mingw.
# 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 __WIN32__) && ! defined __CYGWIN__))
# define flockfile(fp) /* nop */
# define funlockfile(fp) /* nop */
# endif