瀏覽代碼

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.
Andrew Kaster 4 年之前
父節點
當前提交
a65ccfee3a
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Userland/Libraries/LibCore/TCPServer.cpp

+ 1 - 0
Userland/Libraries/LibCore/TCPServer.cpp

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