commit be3d1d82616f0340f70d9ad568e4ed3247d70f06 parent 77f37c1fad64434189cef43c0cf22001d6b62cab Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev> Date: Sun, 8 Feb 2026 19:11:06 +0100 daemon_start.c: optimised includes Diffstat:
| M | src/mhd2/daemon_start.c | | | 17 | ++--------------- |
1 file changed, 2 insertions(+), 15 deletions(-)
diff --git a/src/mhd2/daemon_start.c b/src/mhd2/daemon_start.c @@ -66,27 +66,14 @@ #ifdef MHD_SOCKETS_KIND_POSIX # include "sys_errno.h" #endif +#include "sys_select.h" +#include "sys_poll.h" #ifdef MHD_SUPPORT_EPOLL # include <sys/epoll.h> #endif #ifdef MHD_SOCKETS_KIND_POSIX # include <fcntl.h> -# ifdef MHD_SUPPORT_SELECT -# ifdef HAVE_SYS_SELECT_H -# include <sys/select.h> /* For FD_SETSIZE */ -# else -# ifdef HAVE_SYS_TIME_H -# include <sys/time.h> -# endif -# ifdef HAVE_SYS_TYPES_H -# include <sys/types.h> -# endif -# ifdef HAVE_UNISTD_H -# include <unistd.h> -# endif -# endif -# endif #endif #include "extr_events_funcs.h"