Socket: Resolve incorrect include warning

This is a musl warning, according to fcntl.h's man page, the include should always be <fcntl.h> anyways
This commit is contained in:
Joshua Vandaële
2026-07-16 22:11:17 +02:00
parent f1a639b12b
commit 32c5f09767
+5 -9
View File
@@ -17,23 +17,19 @@ typedef pollfd pollfd_t;
#elif defined(__linux__) or defined(__APPLE__) or defined(__FreeBSD__) or defined(__NetBSD__) or \
defined(__OpenBSD__) or defined(__HAIKU__)
#include <arpa/inet.h>
#include <fcntl.h>
#include <net/if.h>
#include <netdb.h>
#include <netinet/in.h>
#include <poll.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/types.h>
#if defined(ANDROID) || defined(__HAIKU__)
#include <fcntl.h>
#else
#include <sys/fcntl.h>
#endif
#include <net/if.h>
#include <netinet/in.h>
#include <poll.h>
typedef struct pollfd pollfd_t;
#else
#include <fcntl.h>
#include <netinet/in.h>
#include <sys/fcntl.h>
#include <sys/socket.h>
#include <sys/types.h>
#endif