summaryrefslogtreecommitdiff
path: root/pkgtools/gnome-packagekit/patches/patch-ab
blob: 2fa774de55694dcddf5e534426c69cd9fa8aad63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$NetBSD: patch-ab,v 1.1.1.1 2009/01/08 00:22:46 jmcneill Exp $

--- src/egg-debug.c.orig	2009-01-06 23:35:59.000000000 -0500
+++ 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"
 
@@ -78,6 +80,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;
@@ -95,6 +98,9 @@ egg_debug_backtrace (void)
 		pk_set_console_mode (CONSOLE_RESET);
 		free (symbols);
 	}
+#else
+	g_print ("egg_debug_backtrace not implemented on this platform.\n");
+#endif
 }
 
 /**