aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-07-15 02:57:23 +0200
committerRobert Tari <robert@tari.in>2021-07-15 02:57:23 +0200
commit7b495005c1998aaf148c17ceb4f5576835d87ba2 (patch)
tree68f376e40beed24b3ab7c56af2f6e4418c4bac2d /src
parent2f386057f526b2a42eba662c5ed3dca7447f12cd (diff)
downloadayatana-indicator-datetime-7b495005c1998aaf148c17ceb4f5576835d87ba2.tar.gz
ayatana-indicator-datetime-7b495005c1998aaf148c17ceb4f5576835d87ba2.tar.bz2
ayatana-indicator-datetime-7b495005c1998aaf148c17ceb4f5576835d87ba2.zip
src/myself.cpp: Fix libaccounts-glib.h inclusion in Focal
Diffstat (limited to 'src')
-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>