RFR: 8308544: Fix compilation regression from JDK-8306983 on musl libc [v2]

Jan Kratochvil duke at openjdk.org
Tue May 23 07:29:28 UTC 2023


> Since [JDK-8306983](https://bugs.openjdk.org/browse/JDK-8306983) compilation on Alpine Linux using musl libc:
> 
> ../src/jdk.internal.le/linux/native/lible/CLibrary.cpp: In function 'void Java_jdk_internal_org_jline_terminal_impl_jna_linux_CLibraryImpl_tcgetattr(JNIEnv*, jobject, jint, jobject)':
> ../src/jdk.internal.le/linux/native/lible/CLibrary.cpp:116:45: error: 'struct termios' has no member named 'c_ispeed'; did you mean '__c_ispeed'?
>   116 | env->SetIntField(result, c_ispeed, data.c_ispeed);
>       | ^~~~~~~~
>       | __c_ispeed
> ../src/jdk.internal.le/linux/native/lible/CLibrary.cpp:117:45: error: 'struct termios' has no member named 'c_ospeed'; did you mean '__c_ospeed'?
>   117 | env->SetIntField(result, c_ospeed, data.c_ospeed);
>       | ^~~~~~~~
>       | __c_ospeed
> ../src/jdk.internal.le/linux/native/lible/CLibrary.cpp: In function 'void Java_jdk_internal_org_jline_terminal_impl_jna_linux_CLibraryImpl_tcsetattr(JNIEnv*, jobject, jint, jint, jobject)':
> ../src/jdk.internal.le/linux/native/lible/CLibrary.cpp:136:10: error: 'struct termios' has no member named 'c_ispeed'; did you mean '__c_ispeed'?
>   136 | data.c_ispeed = env->GetIntField(input, c_ispeed);
>       | ^~~~~~~~
>       | __c_ispeed
> ../src/jdk.internal.le/linux/native/lible/CLibrary.cpp:137:10: error: 'struct termios' has no member named 'c_ospeed'; did you mean '__c_ospeed'?
>    ... (rest of output omitted)

Jan Kratochvil has updated the pull request incrementally with one additional commit since the last revision:

  Change author's e-mail.

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/14080/files
  - new: https://git.openjdk.org/jdk/pull/14080/files/8265af14..4c1b4ab0

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=14080&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14080&range=00-01

  Stats: 0 lines in 0 files changed: 0 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/14080.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14080/head:pull/14080

PR: https://git.openjdk.org/jdk/pull/14080


More information about the kulla-dev mailing list