summaryrefslogtreecommitdiff
blob: 4650bc12a7d1458a9c854276c435d67b8bab97da (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
--- src/parsegen.cpp
+++ src/parsegen.cpp
@@ -31,6 +31,7 @@
 #include <sstream>
 #include <set>
 #include <stack>
+#include <cstring>
 using namespace std;
 
 #include <errno.h>
@@ -1828,7 +1829,7 @@
   }
 }
 
-int main(size_t argc, const char **argv)
+int main(int argc, const char **argv)
 {
   const char *cheader_file = 0;
   bool compile = false;
--- src/tools/depbuild.cpp
+++ src/tools/depbuild.cpp
@@ -24,6 +24,7 @@
 #include <iostream>
 #include <string>
 #include <cstdio>
+#include <cstdlib>
 using namespace std;
 
 #include "fileutil.h"
@@ -183,7 +184,7 @@
   }
 }
 
-int main(size_t argc, const char *const *const argv)
+int main(int argc, const char *const *const argv)
 {
   if (argc < 5)
   {
--- src/tools/strutil.h
+++ src/tools/strutil.h
@@ -25,6 +25,7 @@
 #include <string>
 #include <vector>
 #include <cctype>
+#include <cstring>
 
 struct ci_char_traits : public std::char_traits<char>
 {