talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 38c61b17980e22106fc09d4e440054256a0b8df7
parent 915da5896b1f9ca11c668cb40ca3f7eb2562e014
Author: Olaf Hering <olaf@aepfle.de>
Date:   Wed, 14 Feb 2024 11:13:43 +0100

Include sys/socket.h unconditional in imap-thread.c

The code uses socketpair, which according to socketpair(3p) needs this
header. Move it into the existing conditional, because the calling
function imap_threaded_connect_cmd is also wrapped in the same
conditional.

Currently the header is indirectly included via netdb.h.

Signed-off-by: Olaf Hering <olaf@aepfle.de>

Diffstat:
Msrc/etpan/imap-thread.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/etpan/imap-thread.c b/src/etpan/imap-thread.c @@ -29,11 +29,9 @@ #include <imap.h> #include <sys/types.h> #include <sys/stat.h> -#if (defined(__DragonFly__) || defined (__NetBSD__) || defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__CYGWIN__)) -#include <sys/socket.h> -#endif #include <fcntl.h> #ifndef G_OS_WIN32 +#include <sys/socket.h> #include <sys/mman.h> #include <sys/wait.h> #endif