summaryrefslogtreecommitdiffstats
path: root/x11/gnome-shell/files/patch-src_gnome-shell-plugin.c
blob: 90359fa33e6d356e18c2111f0150531b421faf13 (plain) (blame)
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
--- src/gnome-shell-plugin.c.orig   2010-06-06 22:53:13.000000000 +0200
+++ src/gnome-shell-plugin.c    2010-06-06 22:56:03.000000000 +0200
@@ -38,7 +38,6 @@
 #include <gjs/gjs.h>
 #include <girepository.h>
 #include <gmodule.h>
-#include <malloc.h>
 #include <stdlib.h>
 #include <string.h>
 
@@ -238,6 +237,7 @@
 malloc_statistics_callback (ShellPerfLog *perf_log,
                             gpointer      data)
 {
+#if defined(__linux__)
   struct mallinfo info = mallinfo ();
 
   shell_perf_log_update_statistic_i (perf_log,
@@ -249,6 +249,7 @@
   shell_perf_log_update_statistic_i (perf_log,
                                      "malloc.usedSize",
                                      info.uordblks);
+#endif
 }
 
 static void