vcpkg/ports/protobuf/fix-mingw-build.patch
Liu Chenxin e16a8ac6dc
[protobuf] fix protobuf-3.18 mingw build failure (#22369)
* fix protobuf-3.18 mingw build

* fix protobuf-3.18 mingw build
2022-01-12 11:34:24 -08:00

12 lines
412 B
Diff

--- a/src/google/protobuf/io/zero_copy_stream_impl.cc 2021-09-15 00:48:28.000000000 +0800
+++ b/src/google/protobuf/io/zero_copy_stream_impl.cc 2022-01-06 15:19:12.657413400 +0800
@@ -104,7 +104,7 @@
is_closed_(false),
errno_(0),
previous_seek_failed_(false) {
-#ifndef _MSC_VER
+#ifndef _WIN32
int flags = fcntl(file_, F_GETFL);
flags &= ~O_NONBLOCK;
fcntl(file_, F_SETFL, flags);