diff options
author | Hib Eris <hib@hiberis.nl> | 2010-01-05 12:00:46 (GMT) |
---|---|---|
committer | Hib Eris <hib@hiberis.nl> | 2010-01-27 16:27:22 (GMT) |
commit | f9c2880d31bb2f5d4411849b9207c5d26a5c616a (patch) | |
tree | 5101dcca24f4c31a275ec93c6f8df07add617dfe /backend/dvi | |
parent | 1ff4db77238ee4f3b89c5cd7b94e3178e11fb543 (diff) |
[windows] Define WIFEXITED and WEXITSTATUS on Windows
Diffstat (limited to 'backend/dvi')
-rw-r--r-- | backend/dvi/dvi-document.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/backend/dvi/dvi-document.c b/backend/dvi/dvi-document.c index 863276d..5c4ecea 100644 --- a/backend/dvi/dvi-document.c +++ b/backend/dvi/dvi-document.c @@ -32,7 +32,12 @@ #include <glib/gi18n-lib.h> #include <ctype.h> -#include <sys/wait.h> +#ifdef G_OS_WIN32 +# define WIFEXITED(x) ((x) != 3) +# define WEXITSTATUS(x) (x) +#else +# include <sys/wait.h> +#endif #include <stdlib.h> GMutex *dvi_context_mutex = NULL; |