aboutsummaryrefslogtreecommitdiffstats
path: root/community/mate-power-manager/0001-execinfo-patch.patch
blob: 2c07ef12f1e8b53c75c669c5cb763079ca375917 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
From f117ad21ce676d67df265e522bfc1047118958ba Mon Sep 17 00:00:00 2001
From: Alan Lacerda <alacerda@alpinelinux.org>
Date: Thu, 16 Apr 2015 18:53:43 +0000
Subject: [PATCH] execinfo patch

---
 applets/brightness/egg-debug.c | 2 ++
 applets/inhibit/egg-debug.c    | 2 ++
 src/egg-debug.c                | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/applets/brightness/egg-debug.c b/applets/brightness/egg-debug.c
index 2f140f2..3a8e6e7 100644
--- 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"
 
diff --git a/applets/inhibit/egg-debug.c b/applets/inhibit/egg-debug.c
index 2f140f2..3a8e6e7 100644
--- 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"
 
diff --git a/src/egg-debug.c b/src/egg-debug.c
index 2f140f2..3a8e6e7 100644
--- 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"
 
-- 
2.3.3