commit 5b177bbac61e0c9daa64b64e5e6c45d7aec76121
parent 4c1d17a798553d4d0ce2c6bb29a8baeff25dbe8a
Author: Andrej Kacian <ticho@claws-mail.org>
Date: Wed, 14 Nov 2018 21:21:51 +0100
Fix WEXITSTATUS build error on Win32.
Also add glib.h include in file-utils.c, so that
G_OS_WIN32 ifdefs actually work.
Diffstat:
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git 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;