[pan2] compile fixes for libnotify and gpg.h
- From: Heinrich MÃller <henmull src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2] compile fixes for libnotify and gpg.h
- Date: Sun, 8 Apr 2012 18:04:27 +0000 (UTC)
commit 6af655d896455406088c322e7625ce29ee1a901f
Author: Heinrich MÃller <henmull src gnome org>
Date: Sun Apr 8 19:59:03 2012 +0200
compile fixes for libnotify and gpg.h
pan/gui/pan.cc | 10 +++++++++-
pan/tasks/nzb.h | 1 +
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/pan/gui/pan.cc b/pan/gui/pan.cc
index 9802872..a7df3c4 100644
--- a/pan/gui/pan.cc
+++ b/pan/gui/pan.cc
@@ -320,7 +320,15 @@ namespace
NotifyNotification *notif(0);
GError* error(0);
- notif = notify_notification_new (summary, body, NULL);
+#ifdef NOTIFY_CHECK_VERSION
+ #if NOTIFY_CHECK_VERSION (0, 7, 0)
+ notif=notify_notification_new(summary, body, NULL);
+ #else
+ notif=notify_notification_new(summary, body, NULL,NULL);
+ #endif
+#else
+ notif=notify_notification_new(summary, body, NULL,NULL);
+#endif
if (!notif) return;
_notifs.insert(G_OBJECT(notif));
diff --git a/pan/tasks/nzb.h b/pan/tasks/nzb.h
index c56ba23..5cc638c 100644
--- a/pan/tasks/nzb.h
+++ b/pan/tasks/nzb.h
@@ -23,6 +23,7 @@
#include <vector>
#include <pan/data/data.h>
#include <pan/usenet-utils/MersenneTwister.h>
+#include <unistd.h>
namespace pan
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]