mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 06:45:27 +00:00
Correct nfds_t size on Android (#24647)
Turns out bionic uses an unsigned int (unlike other Linux libcs). (See <https://android.googlesource.com/platform/bionic/+/master/libc/include/poll.h>.)
This commit is contained in:
@@ -1104,7 +1104,9 @@ when not defined(lwip):
|
||||
# Meanwhile, BSD derivatives had used unsigned int; we will use this
|
||||
# for the else case, because it is more widely cloned than SVR4's
|
||||
# behavior.
|
||||
when defined(linux) or defined(haiku):
|
||||
# Finally, bionic libc (Android) also uses unsigned int, despite being
|
||||
# a Linux.
|
||||
when defined(linux) and not defined(android) or defined(haiku):
|
||||
type
|
||||
Tnfds* {.importc: "nfds_t", header: "<poll.h>".} = culong
|
||||
elif defined(zephyr):
|
||||
|
||||
Reference in New Issue
Block a user