diff options
author | Tor Lillqvist <tml@novell.com> | 2009-01-29 01:19:48 +0800 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2009-01-29 01:19:48 +0800 |
commit | b95a3586e3af5aad0e4c3322faa4daa06cf7b647 (patch) | |
tree | 17d05ca11154a9dce02dc797afa3f5b602404237 /plugins/backup-restore/backup-restore.c | |
parent | e790f2dee0f819c7eed06dff0a690fcb55e9a30d (diff) | |
download | gsoc2013-evolution-b95a3586e3af5aad0e4c3322faa4daa06cf7b647.tar gsoc2013-evolution-b95a3586e3af5aad0e4c3322faa4daa06cf7b647.tar.gz gsoc2013-evolution-b95a3586e3af5aad0e4c3322faa4daa06cf7b647.tar.bz2 gsoc2013-evolution-b95a3586e3af5aad0e4c3322faa4daa06cf7b647.tar.lz gsoc2013-evolution-b95a3586e3af5aad0e4c3322faa4daa06cf7b647.tar.xz gsoc2013-evolution-b95a3586e3af5aad0e4c3322faa4daa06cf7b647.tar.zst gsoc2013-evolution-b95a3586e3af5aad0e4c3322faa4daa06cf7b647.zip |
Make it compile on Windows, by Fridrich Strbra. (Just compile; little
2009-01-28 Tor Lillqvist <tml@novell.com>
Make it compile on Windows, by Fridrich Strbra. (Just compile;
little chance of it actually doing anything sensible on Windows at
this point...)
* Makefile.am: Use -no-undefined on Windows. Link with libeutil.
* backup.c: Remove unused <sys/wait.h>.
* backup-restore.c: Check HAVE_SYS_WAIT_H.
svn path=/trunk/; revision=37148
Diffstat (limited to 'plugins/backup-restore/backup-restore.c')
-rw-r--r-- | plugins/backup-restore/backup-restore.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/plugins/backup-restore/backup-restore.c b/plugins/backup-restore/backup-restore.c index 3486844cc3..00d01c9709 100644 --- a/plugins/backup-restore/backup-restore.c +++ b/plugins/backup-restore/backup-restore.c @@ -18,9 +18,16 @@ * */ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + #include <unistd.h> #include <sys/types.h> -#include <sys/wait.h> +#ifdef HAVE_SYS_WAIT_H +# include <sys/wait.h> +#endif +#include <stdlib.h> #include <gtk/gtk.h> #include <glib/gi18n.h> #include <glib/gstdio.h> @@ -71,9 +78,13 @@ sanity_check (const char *filename) result = system (command); g_free (command); +#ifdef HAVE_SYS_WAIT_H g_message ("Sanity check result %d:%d %d", WIFEXITED (result), WEXITSTATUS (result), result); - return WIFEXITED (result) && (WEXITSTATUS (result) == 0); + return WIFEXITED (result) && (WEXITSTATUS (result) == 0); */ +#else + return result; +#endif } static guint32 |