[Commits] [SCM] claws branch, master, updated. 3.17.0-165-g5b177bb

ticho at claws-mail.org ticho at claws-mail.org
Wed Nov 14 21:23:05 CET 2018


The branch, master has been updated
       via  5b177bbac61e0c9daa64b64e5e6c45d7aec76121 (commit)
      from  4c1d17a798553d4d0ce2c6bb29a8baeff25dbe8a (commit)

Summary of changes:
 src/common/file-utils.c |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)


- Log -----------------------------------------------------------------
commit 5b177bbac61e0c9daa64b64e5e6c45d7aec76121
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Wed Nov 14 21:21:51 2018 +0100

    Fix WEXITSTATUS build error on Win32.
    
    Also add glib.h include in file-utils.c, so that
    G_OS_WIN32 ifdefs actually work.

diff --git a/src/common/file-utils.c b/src/common/file-utils.c
index e2fe50a..e469406 100644
--- a/src/common/file-utils.c
+++ b/src/common/file-utils.c
@@ -21,7 +21,14 @@
 #include "claws-features.h"
 #endif
 
+#include <glib.h>
+
+#ifndef G_OS_WIN32
 #include <sys/wait.h>
+#else
+#define WEXITSTATUS(x) (x)
+#endif
+
 #include <errno.h>
 #include <stdio.h>
 #include <unistd.h>
@@ -98,10 +105,6 @@ int claws_fclose(FILE *fp)
 }
 #endif
 
-#ifdef G_OS_WIN32
-#define WEXITSTATUS(x) (x)
-#endif
-
 int claws_unlink(const char *filename) 
 {
 	GStatBuf s;

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list