]> PatchyGit - patchyircd.git/commitdiff
don't redefine FD_SETSIZE and don't include poll.h
authorEgor <egor@patchysicp.xyz>
Fri, 13 Jun 2025 00:07:58 +0000 (03:07 +0300)
committerEgor <egor@patchysicp.xyz>
Fri, 13 Jun 2025 00:08:59 +0000 (03:08 +0300)
we no longer use select or poll

src/netsock.h

index f60c7bf..bb5aa00 100644 (file)
  * | "e"                | (none)            | FOPEN_CLOEXEC    |
  */
 
-/* All implementations besides glibc and 4.4BSD allow redefining this constant.
- * Win32 has 64 as default, Linux has 1024. Increase the limit on Win32. */
-#define FD_SETSIZE 1024
-
 /* Standard headers */
 #include <stdio.h>
 #include <stdlib.h>
@@ -48,7 +44,6 @@
 #include <arpa/inet.h>
 #include <netdb.h>
 #include <fcntl.h>
-#include <poll.h>
 #include <signal.h>
 #define PRISocket "d"
 #define net_perror(p) (perror((p)))