Skip to content

Commit

Permalink
The JNA ioctl call is broken on Mac/aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Mar 8, 2023
1 parent ca176da commit 362b233
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public static JnaNativePty current(TerminalProvider.Stream console) throws IOExc

public static JnaNativePty open(Attributes attr, Size size) throws IOException {
if (Platform.isMac()) {
if (Platform.is64Bit() && Platform.isARM()) {
throw new UnsupportedOperationException();
}
return OsXNativePty.open(attr, size);
} else if (Platform.isLinux()) {
return LinuxNativePty.open(attr, size);
Expand Down

0 comments on commit 362b233

Please sign in to comment.