From c1f9e21304c1418032718fcbe693a234593f5ba8 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 7 Nov 2015 07:55:14 +0100 Subject: [PATCH] mate-power-manager: unbreak musl. --- srcpkgs/mate-power-manager/patches/musl.patch | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 srcpkgs/mate-power-manager/patches/musl.patch diff --git a/srcpkgs/mate-power-manager/patches/musl.patch b/srcpkgs/mate-power-manager/patches/musl.patch new file mode 100644 index 00000000000..c9c03e548f9 --- /dev/null +++ b/srcpkgs/mate-power-manager/patches/musl.patch @@ -0,0 +1,84 @@ +--- src/egg-debug.c.orig 2015-11-07 07:50:36.623167156 +0100 ++++ src/egg-debug.c 2015-11-07 07:51:46.719072134 +0100 +@@ -39,7 +39,9 @@ + #include + #include + #include ++#ifdef __GLIBC__ + #include ++#endif + + #include "egg-debug.h" + +@@ -78,6 +80,7 @@ pk_set_console_mode (guint console_code) + void + egg_debug_backtrace (void) + { ++#ifdef __GLIBC__ + void *call_stack[512]; + int call_stack_size; + char **symbols; +@@ -95,6 +98,7 @@ egg_debug_backtrace (void) + pk_set_console_mode (CONSOLE_RESET); + free (symbols); + } ++#endif + } + + /** +--- applets/brightness/egg-debug.c.orig 2015-11-07 07:52:33.320008962 +0100 ++++ applets/brightness/egg-debug.c 2015-11-07 07:53:09.302960183 +0100 +@@ -39,7 +39,9 @@ + #include + #include + #include ++#ifdef __GLIBC__ + #include ++#endif + + #include "egg-debug.h" + +@@ -78,6 +80,7 @@ pk_set_console_mode (guint console_code) + void + egg_debug_backtrace (void) + { ++#ifdef __GLIBC__ + void *call_stack[512]; + int call_stack_size; + char **symbols; +@@ -95,6 +98,7 @@ egg_debug_backtrace (void) + pk_set_console_mode (CONSOLE_RESET); + free (symbols); + } ++#endif + } + + /** +--- applets/inhibit/egg-debug.c.orig 2015-11-07 07:53:32.815928309 +0100 ++++ applets/inhibit/egg-debug.c 2015-11-07 07:53:55.503897553 +0100 +@@ -39,7 +39,9 @@ + #include + #include + #include ++#ifdef __GLIBC__ + #include ++#endif + + #include "egg-debug.h" + +@@ -78,6 +80,7 @@ pk_set_console_mode (guint console_code) + void + egg_debug_backtrace (void) + { ++#ifdef __GLIBC__ + void *call_stack[512]; + int call_stack_size; + char **symbols; +@@ -95,6 +98,7 @@ egg_debug_backtrace (void) + pk_set_console_mode (CONSOLE_RESET); + free (symbols); + } ++#endif + } + + /**