[file-roller] Mac OS X compilation fixes
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] Mac OS X compilation fixes
- Date: Mon, 31 Aug 2015 16:06:36 +0000 (UTC)
commit 7fbd3b60acd9cf9675314e3004b8aa995939dfb4
Author: Tom Schoonjans <Tom Schoonjans bam de>
Date: Mon Aug 31 19:57:57 2015 +0530
Mac OS X compilation fixes
The following changes are necessary to ensure compilation on Mac OS X.
There should be no impact on compilation on Linux with these
modifications.
src/dlg-package-installer.c | 2 ++
src/fr-command-lrzip.c | 4 ++++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/dlg-package-installer.c b/src/dlg-package-installer.c
index 1b9d8c7..120bed3 100644
--- a/src/dlg-package-installer.c
+++ b/src/dlg-package-installer.c
@@ -22,7 +22,9 @@
#include <config.h>
#include <string.h>
#include <glib/gi18n.h>
+#ifdef ENABLE_PACKAGEKIT
#include <gdk/gdkx.h>
+#endif
#include <gtk/gtk.h>
#include "dlg-package-installer.h"
#include "gio-utils.h"
diff --git a/src/fr-command-lrzip.c b/src/fr-command-lrzip.c
index ad53a13..4fd2927 100644
--- a/src/fr-command-lrzip.c
+++ b/src/fr-command-lrzip.c
@@ -45,7 +45,11 @@ list__process_line (char *line,
struct stat st;
if (stat (comm->filename, &st) == 0)
+#ifdef __APPLE__
+ fdata->modified = st.st_mtime;
+#else
fdata->modified = st.st_mtim.tv_sec;
+#endif
else
time(&(fdata->modified));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]