Browse Source

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 years ago
parent
commit
a65ccfee3a
1 changed files with 1 additions and 0 deletions
  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 {