mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 20:45:14 +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:
parent
72be904259
commit
a65ccfee3a
Notes:
sideshowbarker
2024-07-18 23:52:52 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/a65ccfee3a0 Pull-request: https://github.com/SerenityOS/serenity/pull/4936
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@
|
|||
#include <sys/socket.h>
|
||||
|
||||
#ifndef SOCK_NONBLOCK
|
||||
# include <fcntl.h>
|
||||
# include <sys/ioctl.h>
|
||||
#endif
|
||||
namespace Core {
|
||||
|
|
Loading…
Add table
Reference in a new issue