- 
    Bug 
- 
    Resolution: Duplicate
- 
     P4 P4
- 
    None
- 
    21
- 
        linux
                    ```
/shared/projects/openjdk/jdk-jdk/source/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)':
/shared/projects/openjdk/jdk-jdk/source/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
/shared/projects/openjdk/jdk-jdk/source/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
```
both c_ispeed and c_ospeed are not Posix standard and not available on musl. See also https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/termios.h.html
/shared/projects/openjdk/jdk-jdk/source/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)':
/shared/projects/openjdk/jdk-jdk/source/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
/shared/projects/openjdk/jdk-jdk/source/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
```
both c_ispeed and c_ospeed are not Posix standard and not available on musl. See also https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/termios.h.html
- duplicates
- 
                    JDK-8308544 Fix compilation regression from JDK-8306983 on musl libc -           
- Resolved
 
-         
- relates to
- 
                    JDK-8306983 Do not invoke external programs when switch terminal to raw mode on selected platforms -           
- Resolved
 
-         
- links to
- 
                     Review
        openjdk/jdk/14097 Review
        openjdk/jdk/14097