summaryrefslogtreecommitdiff
blob: 62157058ba6f1fb9af5b37cebbb678e37616832c (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Instead of deleting the code blocks, just putting them inside a ifndef
# condition is safer
--- a/applets/brightness/egg-debug.c
+++ b/applets/brightness/egg-debug.c
@@ -74,6 +74,7 @@ pk_set_console_mode (guint console_code)
 	printf ("%s", command);
 }

+#if (defined(__UCLIBC__) || defined(__GLIBC__))
 /**
  * egg_debug_backtrace:
  **/
@@ -98,6 +99,7 @@ egg_debug_backtrace (void)
 		free (symbols);
 	}
 }
+#endif

 /**
  * pk_log_line:
@@ -229,8 +231,10 @@ egg_error_real (const gchar *func, const gchar *file, const int line, const gcha
 	pk_print_line (func, file, line, buffer, CONSOLE_RED);
 	g_free(buffer);

+#if (defined(__UCLIBC__) || defined(__GLIBC__))
 	/* we want to fix this! */
 	egg_debug_backtrace ();
+#endif

 	exit (1);
 }
--- a/applets/inhibit/egg-debug.c
+++ b/applets/inhibit/egg-debug.c
@@ -74,6 +74,7 @@ pk_set_console_mode (guint console_code)
 	printf ("%s", command);
 }

+#if (defined(__UCLIBC__) || defined(__GLIBC__))
 /**
  * egg_debug_backtrace:
  **/
@@ -98,6 +99,7 @@ egg_debug_backtrace (void)
 		free (symbols);
 	}
 }
+#endif

 /**
  * pk_log_line:
@@ -229,8 +231,10 @@ egg_error_real (const gchar *func, const gchar *file, const int line, const gcha
 	pk_print_line (func, file, line, buffer, CONSOLE_RED);
 	g_free(buffer);

+#if (defined(__UCLIBC__) || defined(__GLIBC__))
 	/* we want to fix this! */
 	egg_debug_backtrace ();
+#endif

 	exit (1);
 }
--- a/src/egg-debug.c
+++ b/src/egg-debug.c
@@ -74,6 +74,7 @@ pk_set_console_mode (guint console_code)
 	printf ("%s", command);
 }

+#if (defined(__UCLIBC__) || defined(__GLIBC__))
 /**
  * egg_debug_backtrace:
  **/
@@ -98,6 +99,7 @@ egg_debug_backtrace (void)
 		free (symbols);
 	}
 }
+#endif

 /**
  * pk_log_line:
@@ -229,8 +231,10 @@ egg_error_real (const gchar *func, const gchar *file, const int line, const gcha
 	pk_print_line (func, file, line, buffer, CONSOLE_RED);
 	g_free(buffer);

+#if (defined(__UCLIBC__) || defined(__GLIBC__))
 	/* we want to fix this! */
 	egg_debug_backtrace ();
+#endif

 	exit (1);
 }