--- libavutil/file_open.c.orig	2023-02-27 21:43:45.000000000 +0100
+++ libavutil/file_open.c	2023-05-12 21:26:11.076208615 +0200
@@ -40,6 +40,10 @@
 #include <errno.h>
 #include "wchar_filename.h"
 
+#ifdef _MSC_VER
+#undef HAVE_MKSTEMP // MEANX
+#endif
+
 static int win32_open(const char *filename_utf8, int oflag, int pmode)
 {
     int fd;
