Fix build error with MinGW (#9077)

Fixes:
  * zero_copy_stream_impl.cc uses F_GETFL when build with MinGW,
    which isn't defined under Windows.
pull/9087/head
johanmoe 3 years ago committed by GitHub
parent 5142e362bc
commit 15c63ad850
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/google/protobuf/io/zero_copy_stream_impl.cc

@ -104,7 +104,7 @@ FileInputStream::CopyingFileInputStream::CopyingFileInputStream(
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);

Loading…
Cancel
Save