mate-power-manager: unbreak musl.
This commit is contained in:
parent
abe1ad95ce
commit
c1f9e21304
1 changed files with 84 additions and 0 deletions
84
srcpkgs/mate-power-manager/patches/musl.patch
Normal file
84
srcpkgs/mate-power-manager/patches/musl.patch
Normal file
|
@ -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 <sys/stat.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <time.h>
|
||||||
|
+#ifdef __GLIBC__
|
||||||
|
#include <execinfo.h>
|
||||||
|
+#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 <sys/stat.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <time.h>
|
||||||
|
+#ifdef __GLIBC__
|
||||||
|
#include <execinfo.h>
|
||||||
|
+#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 <sys/stat.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <time.h>
|
||||||
|
+#ifdef __GLIBC__
|
||||||
|
#include <execinfo.h>
|
||||||
|
+#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
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
Loading…
Add table
Add a link
Reference in a new issue