RFR: JDK-8266797: Fix for 8266610 breaks the build on macos

Aleksey Shipilev shade at openjdk.java.net
Mon May 10 13:34:45 UTC 2021


On Mon, 10 May 2021 06:34:36 GMT, Vyom Tewari <vtewari at openjdk.org> wrote:

> this change will  include  the below headers files to Linux only. 
> #include <linux/fs.h>
> #include <sys/stat.h>

MacOS builds fail with GHA since recently. So enabling GHA would serve a basic test for this to work.

src/java.base/unix/native/libjava/io_util_md.c line 39:

> 37: #if defined(__linux__)
> 38: #include <linux/fs.h>
> 39: #include <sys/stat.h>

Does Mac OS need `sys/stat.h`, though?

-------------

PR: https://git.openjdk.java.net/jdk/pull/3943


More information about the core-libs-dev mailing list