aboutsummaryrefslogtreecommitdiffstats
path: root/main/audacious/uclibc-execinfo.patch
blob: 803f273ef88b96af32858b0ecddb397045c9c919 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- audacious-2.4.2.orig/src/libaudcore/audstrings.c
+++ audacious-2.4.2/src/libaudcore/audstrings.c
@@ -230,9 +230,8 @@
     return dirname;
 }
 
-#if defined(__GLIBC__) && (__GLIBC__ >= 2)
-#define HAVE_EXECINFO 1
-#include <execinfo.h>
+#ifdef HAVE_EXECINFO_H
+# include <execinfo.h>
 #endif
 
 /**
@@ -258,7 +257,7 @@
 
     /* already UTF-8? */
     if (!g_utf8_validate(str, -1, NULL)) {
-#ifdef HAVE_EXECINFO
+#ifdef HAVE_EXECINFO_H
 		gint i, nsymbols;
 		const gint nsymmax = 50;
 		void *addrbuf[nsymmax];