icewm: portability patch from Alpine.

This commit is contained in:
Juan RP 2015-05-30 09:04:42 +02:00
parent 82391e3425
commit 9a2b6b6d07
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,20 @@
--- src/misc.cc
+++ src/misc.cc
@@ -15,7 +15,7 @@
#include <libgen.h>
#endif
-#ifdef linux
+#ifdef __GLIBC__
#include <execinfo.h>
#endif
@@ -539,7 +539,7 @@ bool isreg(char const *path) {
}
void show_backtrace() {
-#ifdef linux
+#ifdef __GLIBC__
const char head[] = "\nbacktrace:\n";
const char tail[] = "end\n";
void *array[20];

View File

@ -1,7 +1,7 @@
# Template file for 'icewm' # Template file for 'icewm'
pkgname=icewm pkgname=icewm
version=1.3.8 version=1.3.8
revision=1 revision=2
build_style=gnu-configure build_style=gnu-configure
configure_args="--enable-shaped-decorations --enable-gradients" configure_args="--enable-shaped-decorations --enable-gradients"
hostmakedepends="pkg-config" hostmakedepends="pkg-config"