mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-13 06:16:10 -04:00
Pass flags to fcntl(F_SETFL) as int, not long
Everybody but Linux documents this as taking an int, and Linux is very tolerant of getting an int instead. If it weren't, everybody doing fcntl(fd,F_SETFL,O_NONBLOCK) would break, since the glibc headers define O_NONBLOCK as an int literal.
This commit is contained in:
parent
eb8122f26c
commit
b3d03822e4
Loading…
x
Reference in New Issue
Block a user