On Mon, 10 May 2021 09:50:44 GMT, Aleksey Shipilev <sh...@openjdk.org> wrote:
>> this change will include the below headers files to Linux only. >> #include <linux/fs.h> >> #include <sys/stat.h> > > 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? No, change is specific to Linux. Please see(https://github.com/openjdk/jdk/commit/69b96f9a1b4a959c6b86f41c2259d9e4d47c8ede). ------------- PR: https://git.openjdk.java.net/jdk/pull/3943