GNOME Power Manager is a session daemon for the GNOME desktop environment that makes it easy to manage your laptop or desktop system.
30 lines
611 B
Text
30 lines
611 B
Text
$NetBSD: patch-aa,v 1.1.1.1 2008/11/24 13:05:45 jmcneill Exp $
|
|
|
|
--- src/egg-debug.c.orig 2008-10-06 10:22:00.000000000 -0400
|
|
+++ src/egg-debug.c
|
|
@@ -39,7 +39,9 @@
|
|
#include <sys/stat.h>
|
|
#include <fcntl.h>
|
|
#include <time.h>
|
|
+#ifdef __linux__
|
|
#include <execinfo.h>
|
|
+#endif
|
|
|
|
#include "egg-debug.h"
|
|
|
|
@@ -93,6 +95,7 @@ pk_set_console_mode (guint console_code)
|
|
void
|
|
egg_debug_backtrace (void)
|
|
{
|
|
+#ifdef __linux__
|
|
void *call_stack[512];
|
|
int call_stack_size;
|
|
char **symbols;
|
|
@@ -110,6 +113,7 @@ egg_debug_backtrace (void)
|
|
pk_set_console_mode (CONSOLE_RESET);
|
|
free (symbols);
|
|
}
|
|
+#endif
|
|
}
|
|
|
|
/**
|