aboutsummaryrefslogtreecommitdiff
path: root/src/myself.cpp
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-07-15 02:57:23 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 14:38:27 +0200
commit5a0a3aa5308ae3864194607cb765d05b409c5b41 (patch)
tree1f3eca94c13bedab57f4ca788662cc61da052a10 /src/myself.cpp
parent6a2853e275df654b439f880cf2c6ee8f605e96c8 (diff)
downloadayatana-indicator-datetime-5a0a3aa5308ae3864194607cb765d05b409c5b41.tar.gz
ayatana-indicator-datetime-5a0a3aa5308ae3864194607cb765d05b409c5b41.tar.bz2
ayatana-indicator-datetime-5a0a3aa5308ae3864194607cb765d05b409c5b41.zip
src/myself.cpp: Fix libaccounts-glib.h inclusion in Focal
Diffstat (limited to 'src/myself.cpp')
-rw-r--r--src/myself.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/myself.cpp b/src/myself.cpp
index 0debfe4..ae2f061 100644
--- a/src/myself.cpp
+++ b/src/myself.cpp
@@ -19,7 +19,12 @@
#include "datetime/myself.h"
-#include <libaccounts-glib.h>
+#if GLIB_CHECK_VERSION(2, 66, 0)
+ #include <libaccounts-glib.h>
+#else
+ #include <libaccounts-glib/accounts-glib.h>
+#endif
+
#include <libaccounts-glib/ag-account.h>
#include <algorithm>