mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 02:45:08 +00:00
LibCore: Include fcntl before using it for non-linux lagom builds
SOCK_NONBLOCK is a linux-ism that serenity and linux support. For lagom builds, we use ioctl/fcntl to get a non-blocking socket the old fashioned way. Some file re-org unhid the fcntl.h dependency of TcpServer, so add the header explicitly.
This commit is contained in:
parent
72be904259
commit
a65ccfee3a
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
||||||
#ifndef SOCK_NONBLOCK
|
#ifndef SOCK_NONBLOCK
|
||||||
|
# include <fcntl.h>
|
||||||
# include <sys/ioctl.h>
|
# include <sys/ioctl.h>
|
||||||
#endif
|
#endif
|
||||||
namespace Core {
|
namespace Core {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue