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
Notes: sideshowbarker 2024-07-18 23:52:52 +09:00

View file

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