From b95a3586e3af5aad0e4c3322faa4daa06cf7b647 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 28 Jan 2009 17:19:48 +0000 Subject: Make it compile on Windows, by Fridrich Strbra. (Just compile; little 2009-01-28 Tor Lillqvist 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 . * backup-restore.c: Check HAVE_SYS_WAIT_H. svn path=/trunk/; revision=37148 --- plugins/backup-restore/ChangeLog | 12 ++++++++++++ plugins/backup-restore/Makefile.am | 3 ++- plugins/backup-restore/backup-restore.c | 15 +++++++++++++-- plugins/backup-restore/backup.c | 1 - 4 files changed, 27 insertions(+), 4 deletions(-) (limited to 'plugins/backup-restore') diff --git a/plugins/backup-restore/ChangeLog b/plugins/backup-restore/ChangeLog index c45db43ff2..ce09142121 100644 --- a/plugins/backup-restore/ChangeLog +++ b/plugins/backup-restore/ChangeLog @@ -1,3 +1,15 @@ +2009-01-28 Tor Lillqvist + + 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 . + + * backup-restore.c: Check HAVE_SYS_WAIT_H. + 2009-01-21 Milan Crha * Makefile.am: Use also EVOLUTION_CALENDAR_CFLAGS. diff --git a/plugins/backup-restore/Makefile.am b/plugins/backup-restore/Makefile.am index 19aed9c479..f93a3c7460 100644 --- a/plugins/backup-restore/Makefile.am +++ b/plugins/backup-restore/Makefile.am @@ -21,7 +21,8 @@ plugin_LTLIBRARIES = liborg-gnome-backup-restore.la liborg_gnome_backup_restore_la_SOURCES = backup-restore.c liborg_gnome_backup_restore_la_LDFLAGS = -module -avoid-version $(NO_UNDEFINED) liborg_gnome_backup_restore_la_LIBADD = \ - $(EVOLUTION_MAIL_LIBS) + $(EVOLUTION_MAIL_LIBS) \ + $(top_builddir)/e-util/libeutil.la privlibexec_PROGRAMS = evolution-backup evolution_backup_SOURCES = backup.c 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 +#endif + #include #include -#include +#ifdef HAVE_SYS_WAIT_H +# include +#endif +#include #include #include #include @@ -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 diff --git a/plugins/backup-restore/backup.c b/plugins/backup-restore/backup.c index 26c4fb958f..f7a42114aa 100644 --- a/plugins/backup-restore/backup.c +++ b/plugins/backup-restore/backup.c @@ -26,7 +26,6 @@ #include #include #include -#include #include #include -- cgit v1.2.3