aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/dunst/fix-build.patch
blob: 9f712c61aafec2e6bf6a0e09e9c75054d7ec9050 (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
--- a/meson.build
+++ b/meson.build
@@ -51,7 +51,6 @@
     gdk_pixbuf,
     pangocairo,
     systemd,
-    libnotify,
     realtime,
     math,
 ]
--- a/dunstify.c
+++ b/dunstify.c
@@ -9,6 +9,11 @@
  * @license BSD-3-Clause
  */

+/* System libnotify.pc defines G_LOG_DOMAIN=libnotify without quotes,
+ * which breaks glib assertion macros. Must be fixed before any includes. */
+#undef G_LOG_DOMAIN
+#define G_LOG_DOMAIN "libnotify"
+
 #include <glib.h>
 #include <libnotify/notify.h>
 #include <locale.h>