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

