summaryrefslogtreecommitdiff
path: root/mate-extra/mate-power-manager/files/mate-power-manager-1.24.3-removing-execinfo.patch
blob: 9a0febfad6c13556d0a8f30e66bf9be9f906ea69 (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
33
34
35
36
37
38
# Musl doesn't supply execinfo.h as a result build fails.
# Closes: https://bugs.gentoo.org/762484
--- a/applets/brightness/egg-debug.c
+++ b/applets/brightness/egg-debug.c
@@ -39,7 +39,9 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <time.h>
+#if (defined(__GLIBC__))
 #include <execinfo.h>
+#endif

 #include "egg-debug.h"

--- a/applets/inhibit/egg-debug.c
+++ b/applets/inhibit/egg-debug.c
@@ -39,7 +39,9 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <time.h>
+#if (defined(__GLIBC__))
 #include <execinfo.h>
+#endif

 #include "egg-debug.h"

--- a/src/egg-debug.c
+++ b/src/egg-debug.c
@@ -39,7 +39,9 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <time.h>
+#if (defined(__GLIBC__))
 #include <execinfo.h>
+#endif

 #include "egg-debug.h"