Skip to content

Commit

Permalink
Fix ioctl on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil authored Oct 11, 2023
1 parent f041ece commit 90a7eb5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/term_size.cr
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ end
{% end %}
{% end %}

fun ioctl(fd : Int, request : ULong, ...) : Int
{% if flag?(:android) %}
fun ioctl(__fd : Int, __request : Int, ...) : Int
{% else %}
fun ioctl(fd : Int, request : ULong, ...) : Int
{% end %}
end
{% end %}

0 comments on commit 90a7eb5

Please sign in to comment.