From af20d5634343bba3ac1fa57888db86c29b07a868 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 28 Jan 2009 17:24:15 +0000 Subject: Windows port by Fridrich Strba. 2009-01-28 Tor Lillqvist Windows port by Fridrich Strba. * Makefile.am: Use -no-undefined and link with more libraries on Windows. * external-editor.c: Check HAVE_SYS_WAIT_H. svn path=/trunk/; revision=37150 --- plugins/external-editor/external-editor.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'plugins/external-editor/external-editor.c') diff --git a/plugins/external-editor/external-editor.c b/plugins/external-editor/external-editor.c index ecccbf8740..140eff1089 100644 --- a/plugins/external-editor/external-editor.c +++ b/plugins/external-editor/external-editor.c @@ -38,7 +38,9 @@ #include #include -#include +#ifdef HAVE_SYS_WAIT_H +# include +#endif #include #include @@ -151,7 +153,11 @@ async_external_editor (GArray *array) return ; } +#ifdef HAVE_SYS_WAIT_H if (WEXITSTATUS (status) != 0) { +#else + if (status) { +#endif d(printf ("\n\nsome problem here with external editor\n\n")); return ; } else { -- cgit v1.2.3