Skip to content

Commit 3f3da9d

Browse files
koukszucs
authored andcommitted
PARQUET-1532: [C++] Fix build error with MinGW
Error message: In file included from C:/msys64/mingw64/include/thrift/TApplicationException.h:23, from C:/Users/kou/work/arrow/arrow.kou/cpp/src/parquet/thrift.h:35, from C:/Users/kou/work/arrow/arrow.kou/cpp/src/parquet/column_reader.cc:36: C:/msys64/mingw64/include/thrift/Thrift.h:32:10: fatal error: netinet/in.h: No such file or directory #include <netinet/in.h> ^~~~~~~~~~~~~~ Author: Kouhei Sutou <kou@clear-code.com> Closes #3676 from kou/cpp-parquet-fix-build-error-with-mingw and squashes the following commits: 248063c <Kouhei Sutou> Fix build error with MinGW
1 parent a7e93a5 commit 3f3da9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/src/parquet/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ foreach(LIB_TARGET ${PARQUET_LIBRARIES})
248248
HAVE_INTTYPES_H
249249
PRIVATE
250250
HAVE_NETDB_H)
251-
if(MSVC)
251+
if(WIN32)
252252
target_compile_definitions(${LIB_TARGET} PRIVATE NOMINMAX)
253253
else()
254254
target_compile_definitions(${LIB_TARGET} PRIVATE HAVE_NETINET_IN_H)

0 commit comments

Comments
 (0)