--- a/src/java.base/unix/native/libnio/ch/FileDispatcherImpl.c Wed Aug 21 12:34:37 2019 -0700
+++ b/src/java.base/unix/native/libnio/ch/FileDispatcherImpl.c Wed Aug 21 13:49:16 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -342,13 +342,13 @@
JNU_ThrowIOExceptionWithLastError(env, "DirectIO setup failed");
return result;
}
-#elif F_NOCACHE
+#elif defined(F_NOCACHE)
result = fcntl(fd, F_NOCACHE, 1);
if (result == -1) {
JNU_ThrowIOExceptionWithLastError(env, "DirectIO setup failed");
return result;
}
-#elif DIRECTIO_ON
+#elif defined(DIRECTIO_ON)
result = directio(fd, DIRECTIO_ON);
if (result == -1) {
JNU_ThrowIOExceptionWithLastError(env, "DirectIO setup failed");