diff options
author | Luca Weiss <luca@z3ntu.xyz> | 2021-12-07 22:22:53 +0100 |
---|---|---|
committer | Luca Weiss <luca@z3ntu.xyz> | 2021-12-07 22:22:55 +0100 |
commit | 89415c01b730e3a1f6f66402b5c439fb04bda201 (patch) | |
tree | 339ca720e59d6dea5b9bf3c7f988e1bf6eed3f75 | |
parent | afb37c43766bba9f3b5d8d827362fb843a85ca0f (diff) | |
download | libayatana-appindicator-89415c01b730e3a1f6f66402b5c439fb04bda201.tar.gz libayatana-appindicator-89415c01b730e3a1f6f66402b5c439fb04bda201.tar.bz2 libayatana-appindicator-89415c01b730e3a1f6f66402b5c439fb04bda201.zip |
Fix build with musl libc
canonicalize_file_name() is a GNU extension not supported by musl libc.
Use realpath() from POSIX instead.
-rw-r--r-- | src/app-indicator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c index a0e1553..cb0086f 100644 --- a/src/app-indicator.c +++ b/src/app-indicator.c @@ -2081,7 +2081,7 @@ append_snap_prefix (const gchar *path) g_autofree gchar *canon_path = NULL; if (snap != NULL && path != NULL) { - canon_path = canonicalize_file_name(path); + canon_path = realpath(path, NULL); if (g_str_has_prefix (canon_path, "/tmp/")) { g_warning ("Using '/tmp' paths in SNAP environment will lead to unreadable resources"); |