[Commits] [SCM] claws branch, master, updated. 4.2.0-52-g38c61b179

mones at claws-mail.org mones at claws-mail.org
Wed Feb 14 10:14:34 UTC 2024


The branch, master has been updated
       via  38c61b17980e22106fc09d4e440054256a0b8df7 (commit)
      from  915da5896b1f9ca11c668cb40ca3f7eb2562e014 (commit)

Summary of changes:
 src/etpan/imap-thread.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 38c61b17980e22106fc09d4e440054256a0b8df7
Author: Olaf Hering <olaf at aepfle.de>
Date:   Wed Feb 14 11:13:43 2024 +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 at aepfle.de>

diff --git a/src/etpan/imap-thread.c b/src/etpan/imap-thread.c
index 86168d74d..0c563777e 100644
--- 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

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list