From a65ccfee3a0dda47c924f207e8219af07df38f1c Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Wed, 13 Jan 2021 00:44:40 -0700 Subject: [PATCH] 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. --- Userland/Libraries/LibCore/TCPServer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibCore/TCPServer.cpp b/Userland/Libraries/LibCore/TCPServer.cpp index 0ef241b717..9a715f1ed8 100644 --- a/Userland/Libraries/LibCore/TCPServer.cpp +++ b/Userland/Libraries/LibCore/TCPServer.cpp @@ -33,6 +33,7 @@ #include #ifndef SOCK_NONBLOCK +# include # include #endif namespace Core {