From 338412434cb86c847f8bbd6399bdfa311dda1fd8 Mon Sep 17 00:00:00 2001 From: Cedric Bail Date: Fri, 15 Mar 2013 11:20:10 +0100 Subject: [PATCH] edje: fix edje_watch compilation on Windows. --- configure.ac | 4 ++++ src/bin/edje/edje_watch.c | 12 +++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index e7f77bb7ab..3df92eb7c8 100644 --- a/configure.ac +++ b/configure.ac @@ -3365,6 +3365,10 @@ AC_SUBST([want_physics]) ### Checks for header files +AC_CHECK_HEADERS([ \ +sys/wait.h \ +]) + ### Checks for types ### Checks for structures diff --git a/src/bin/edje/edje_watch.c b/src/bin/edje/edje_watch.c index 3a7eddcb6c..10e789b78e 100644 --- a/src/bin/edje/edje_watch.c +++ b/src/bin/edje/edje_watch.c @@ -2,13 +2,19 @@ # include "config.h" #endif -#include +#ifdef HAVE_SYS_WAIT_H +# include +#endif +#ifdef HAVE_EVIL +# include +#endif #include #include #include -#ifdef HAVE_EVIL -# include + +#ifdef _WIN32 +# define WEXITSTATUS(r) r #endif static char watchfile[PATH_MAX];