blob: 0aebc851c727e37820cc5acf84e0937ea1a19d94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
Fixes build with GCC 4.7, as well as the gold linker.
--- main.cpp
+++ main.cpp
@@ -22,6 +22,7 @@
#include <signal.h>
#include <sys/stat.h>
#include <pwd.h>
+#include <unistd.h>
#include "dbus.h"
#include "notifywidget.h"
#include "notifyarea.h"
--- notifyarea.cpp
+++ notifyarea.cpp
@@ -22,6 +22,7 @@
#include <QSystemTrayIcon> //alex
#include <QDesktopWidget>
#include <fstream>
+#include <unistd.h>
#include "notifyarea.h"
#include "notifywidget.h"
#include "dbus.h"
--- qtnotifydaemon.pro
+++ qtnotifydaemon.pro
@@ -13,6 +13,7 @@
INCLUDEPATH += .
QT += dbus
RESOURCES += images.qrc
+LIBS += -lX11
# Input
SOURCES += main.cpp notifywidget.cpp dbus.cpp notifyarea.cpp message.cpp
|