Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorHib Eris <hib@hiberis.nl>2009-12-20 10:09:54 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2009-12-22 16:16:26 (GMT)
commite732e45fbf5930d8c3ac2471ff8912f41152ec7a (patch)
treed014d40e8b8b3f09a3f18421c8dae1a9436e1518 /backend
parentb35d0e8093d0a9e3499091b028e8c7ff101c0af1 (diff)
[windows] Make comics backend also compile on Windows
See bgo#605146.
Diffstat (limited to 'backend')
-rw-r--r--backend/comics/comics-document.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/backend/comics/comics-document.c b/backend/comics/comics-document.c
index c2c625a..b82569b 100644
--- a/backend/comics/comics-document.c
+++ b/backend/comics/comics-document.c
@@ -22,7 +22,6 @@
#include <unistd.h>
#include <string.h>
-#include <sys/wait.h>
#include <stdlib.h>
#include <errno.h>
@@ -31,6 +30,13 @@
#include <glib/gstdio.h>
#include <gio/gio.h>
+#ifdef G_OS_WIN32
+# define WIFEXITED(x) ((x) != 3)
+# define WEXITSTATUS(x) (x)
+#else
+# include <sys/wait.h>
+#endif
+
#include "comics-document.h"
#include "ev-document-misc.h"
#include "ev-document-thumbnails.h"