Index: java/test/h5ex_g_iterate Index: src/H5FDdirect.c --- src/H5FDdirect.c.orig 2021-07-01 23:26:41.000000000 +0200 +++ src/H5FDdirect.c 2021-07-09 21:32:42.818403000 +0200 @@ -479,7 +479,9 @@ o_flags |= O_EXCL; /* Flag for Direct I/O */ +#ifdef O_DIRECT o_flags |= O_DIRECT; +#endif /* Open the file */ if ((fd = HDopen(name, o_flags, H5_POSIX_CREATE_MODE_RW)) < 0)