--- a/src/java.base/unix/classes/sun/nio/fs/UnixConstants.java.template Fri Oct 20 11:08:18 2017 -0700
+++ b/src/java.base/unix/classes/sun/nio/fs/UnixConstants.java.template Tue Oct 17 16:51:11 2017 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
@@ -70,6 +70,12 @@
static final int PREFIX_O_NOFOLLOW = 00;
#endif
+#ifdef O_DIRECT
+ static final int PREFIX_O_DIRECT = O_DIRECT;
+#else
+ // not supported (dummy values will not be used at runtime).
+ static final int PREFIX_O_DIRECT = 00;
+#endif
static final int PREFIX_S_IAMB =
(S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IWGRP|S_IXGRP|S_IROTH|S_IWOTH|S_IXOTH);