mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8211360: Change #if DEF to #if defined(DEF)
Reviewed-by: bpb, vtewari
This commit is contained in:
parent
5c3896ce21
commit
5c25e2a6fb
6 changed files with 15 additions and 15 deletions
|
@ -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 @@ Java_sun_nio_ch_FileDispatcherImpl_setDirect0(JNIEnv *env, jclass clazz,
|
|||
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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue