thisisnic commented on issue #47598:
URL: https://github.com/apache/arrow/issues/47598#issuecomment-7134005049

   This still reproduces on current main with MSVC 19.44 when the Parquet 
examples are built (`-DPARQUET_BUILD_EXAMPLES=ON 
-DPARQUET_REQUIRE_ENCRYPTION=ON`): 
`encryption_reader_writer_all_crypto_options.cc(21): fatal error C1083: Cannot 
open include file: 'dirent.h': No such file or directory`. It is the only error 
in the build.
   
   The cause is that 
`cpp/examples/parquet/low_level_api/encryption_reader_writer_all_crypto_options.cc`
 includes the POSIX-only `<dirent.h>` and lists the output directory with 
`opendir`/`readdir`/`closedir` (lines 117-126). Using 
`std::filesystem::directory_iterator` or `arrow::fs::LocalFileSystem` there 
would make it portable. Our Windows CI job doesn't build the Parquet examples, 
which is why this isn't caught.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to