Include <sys/select.h> to get select(3).

This is the header required by POSIX-1.2024.

This change is needed to build irssi on operating systems such as Sortix
that have a strict libc without obsolete behaviors.
This commit is contained in:
Jonas 'Sortie' Termansen 2024-11-01 21:56:21 +01:00 committed by Ailin Nemui
parent 5a9a9ababa
commit 4b2951c828

View File

@ -21,6 +21,8 @@
#include "module.h"
#include <irssi/src/core/network.h>
#include <sys/select.h>
/* when quitting, wait for max. 5 seconds before forcing to close the socket */
#define MAX_QUIT_CLOSE_WAIT 5