c0b7b308f4e458c055f7392d0e1ab19a0ee79650
[debian/lxtask.git] / debian / patches / 01_kfreebsd.patch
1 Origin: Cyril Brulebois
2 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=585969
3 Reviewed-By: Andrew Lee
4 Last-Update: 2010-07-31
5
6 --- lxtask-0.1.3.orig/src/types.h
7 +++ lxtask-0.1.3/src/types.h
8 @@ -78,6 +78,6 @@ extern guint win_height;
9  const gchar *custom_signal_0;
10  const gchar *custom_signal_1;
11  
12 -extern int PAGE_SIZE;
13 +extern int page_size;
14  
15  #endif
16 --- lxtask-0.1.3.orig/src/xfce-taskmanager-linux.c
17 +++ lxtask-0.1.3/src/xfce-taskmanager-linux.c
18 @@ -46,8 +46,8 @@ void get_task_details(gint pid,struct ta
19          sscanf(line,"%d %d",&task->size,&task->rss);
20          close(fd);
21          if(!task->size) return;
22 -       task->size*=PAGE_SIZE;
23 -       task->rss*=PAGE_SIZE;
24 +       task->size*=page_size;
25 +       task->rss*=page_size;
26  
27         sprintf(line,"/proc/%d/stat",pid);
28         fd=open(line,O_RDONLY);
29 --- lxtask-0.1.3.orig/src/main.c
30 +++ lxtask-0.1.3/src/main.c
31 @@ -51,7 +51,7 @@ guint win_height;
32  guint refresh_interval;
33  guint rID;
34  
35 -int PAGE_SIZE;
36 +int page_size;
37  
38  int main (int argc, char *argv[])
39  {
40 @@ -65,7 +65,7 @@ int main (int argc, char *argv[])
41      gtk_set_locale ();
42      gtk_init (&argc, &argv);
43  
44 -    PAGE_SIZE=sysconf(_SC_PAGESIZE)>>10;
45 +    page_size=sysconf(_SC_PAGESIZE)>>10;
46      own_uid = getuid();
47  
48      config_file = g_build_filename(g_get_user_config_dir(), "lxtask.conf", NULL);