edje: fix edje_watch compilation on Windows.
authorCedric Bail <cedric.bail@free.fr>
Fri, 15 Mar 2013 10:20:10 +0000 (11:20 +0100)
committerCedric Bail <cedric.bail@free.fr>
Sat, 16 Mar 2013 06:40:36 +0000 (15:40 +0900)
configure.ac
src/bin/edje/edje_watch.c

index e7f77bb..3df92eb 100644 (file)
@@ -3365,6 +3365,10 @@ AC_SUBST([want_physics])
 
 ### Checks for header files
 
+AC_CHECK_HEADERS([ \
+sys/wait.h \
+])
+
 ### Checks for types
 
 ### Checks for structures
index 3a7eddc..10e789b 100644 (file)
@@ -2,13 +2,19 @@
 # include "config.h"
 #endif
 
-#include <sys/wait.h>
+#ifdef HAVE_SYS_WAIT_H
+# include <sys/wait.h>
+#endif
 
+#ifdef HAVE_EVIL
+# include <Evil.h>
+#endif
 #include <Eina.h>
 #include <Ecore.h>
 #include <Eio.h>
-#ifdef HAVE_EVIL
-# include <Evil.h>
+
+#ifdef _WIN32
+# define WEXITSTATUS(r) r
 #endif
 
 static char watchfile[PATH_MAX];