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:
bptato
2025-05-10 13:26:00 +02:00
committed by GitHub
parent 42a4adb4a5
commit 6f5e5811fc

View File

@@ -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):