1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-29 12:35:06 +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:
Andrew Kaster 2021-01-13 00:44:40 -07:00 committed by Andreas Kling
parent 72be904259
commit a65ccfee3a

View file

@ -33,6 +33,7 @@
#include <sys/socket.h>
#ifndef SOCK_NONBLOCK
# include <fcntl.h>
# include <sys/ioctl.h>
#endif
namespace Core {