Adding debian version 0.1.4-1.
[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 --- a/src/types.h
7 +++ b/src/types.h
8 @@ -79,6 +79,6 @@
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 --- a/src/xfce-taskmanager-linux.c
17 +++ b/src/xfce-taskmanager-linux.c
18 @@ -47,8 +47,8 @@
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 --- a/src/main.c
30 +++ b/src/main.c
31 @@ -56,7 +56,7 @@
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 @@ -72,7 +72,7 @@
41  #endif
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);