Skip to content

Commit

Permalink
Merge pull request #5 from HertzDevil/patch-1
Browse files Browse the repository at this point in the history
Fix `ioctl` on Android
  • Loading branch information
I3oris authored Oct 13, 2023
2 parents f041ece + 90a7eb5 commit 7f87b05
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 7f87b05

Please sign in to comment.