Root/keymouse/patches/001_including_missing_headers.patch

1diff -crB keymouse-1.0/src/app.cpp keymouse-1.0.mod/src/app.cpp
2*** keymouse-1.0/src/app.cpp 2008-03-30 15:41:44.000000000 +0200
3--- keymouse-1.0.mod/src/app.cpp 2010-06-14 13:34:31.565636052 +0200
4***************
5*** 8,14 ****
6  #include <sys/stat.h>
7  #include <fcntl.h>
8  #include "app.h"
9!
10  using namespace std;
11  
12  App::App(const char *file) : m_config(file), m_dev(NULL), m_ordModes(), m_exiting(false)
13--- 8,15 ----
14  #include <sys/stat.h>
15  #include <fcntl.h>
16  #include "app.h"
17! #include <cstdlib>
18! #include <cstring>
19  using namespace std;
20  
21  App::App(const char *file) : m_config(file), m_dev(NULL), m_ordModes(), m_exiting(false)
22diff -crB keymouse-1.0/src/configfile.cpp keymouse-1.0.mod/src/configfile.cpp
23*** keymouse-1.0/src/configfile.cpp 2008-03-08 21:09:36.000000000 +0100
24--- keymouse-1.0.mod/src/configfile.cpp 2010-06-14 13:36:22.096885603 +0200
25***************
26*** 7,12 ****
27--- 7,14 ----
28  #include <fstream>
29  #include <iostream>
30  #include "configfile.h"
31+ #include <cstdlib>
32+ #include <cstring>
33  
34  ConfigFile::ConfigFile(const char *file) : m_values(), m_file(file)
35  {
36Sólo en keymouse-1.0.mod/src: .deps
37diff -crB keymouse-1.0/src/keymouse.cpp keymouse-1.0.mod/src/keymouse.cpp
38*** keymouse-1.0/src/keymouse.cpp 2008-03-10 20:18:37.000000000 +0100
39--- keymouse-1.0.mod/src/keymouse.cpp 2010-06-14 13:36:55.096884176 +0200
40***************
41*** 10,15 ****
42--- 10,17 ----
43  
44  #include <signal.h>
45  #include "app.h"
46+ #include <cstdlib>
47+ #include <cstring>
48  
49  using namespace std;
50  
51diff -crB keymouse-1.0/src/logger.cpp keymouse-1.0.mod/src/logger.cpp
52*** keymouse-1.0/src/logger.cpp 2008-03-08 21:09:36.000000000 +0100
53--- keymouse-1.0.mod/src/logger.cpp 2010-06-14 13:52:26.245635574 +0200
54***************
55*** 6,11 ****
56--- 6,15 ----
57  
58  #include "logger.h"
59  #include <iostream>
60+ #include <cstdlib>
61+ #include <cstring>
62+ #include <cstdarg>
63+ #include <cstdio>
64  
65  using namespace std;
66  
67diff -crB keymouse-1.0/src/shortcut.cpp keymouse-1.0.mod/src/shortcut.cpp
68*** keymouse-1.0/src/shortcut.cpp 2008-03-08 21:09:36.000000000 +0100
69--- keymouse-1.0.mod/src/shortcut.cpp 2010-06-14 13:53:28.896884710 +0200
70***************
71*** 6,11 ****
72--- 6,13 ----
73  
74  #include "shortcut.h"
75  #include <linux/input.h>
76+ #include <cstdlib>
77+ #include <cstring>
78  
79  bool Shortcut::locked = false;
80  
81

Archive Download this file



interactive