Commit 40c75ef
committed
fix: Use type inference for ioctl to support both glibc and musl
The ioctl request type differs between glibc (c_ulong) and musl (c_int).
Using `as _` allows the compiler to infer the correct type for each target.1 parent a15a8fb commit 40c75ef
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
| 181 | + | |
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
| |||
0 commit comments