summaryrefslogtreecommitdiff
blob: ded9e32cc577c6c5fdc16b8100e1765da238792e (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
--- xstow-0.5.1.orig/src/format.h
+++ xstow-0.5.1/src/format.h
@@ -648,17 +648,17 @@
 		
 		switch( num_of_args )
 		{
-		    case 1: n = std::snprintf( buffer, buffer_size, format.c_str(),
+		    case 1: n = snprintf( buffer, buffer_size, format.c_str(),
 					       D( a ) ); break;
-		    case 2: n = std::snprintf( buffer, buffer_size, format.c_str(),
+		    case 2: n = snprintf( buffer, buffer_size, format.c_str(),
 					       D( a ), D( b ) ); break;
-		    case 3: n = std::snprintf( buffer, buffer_size, format.c_str(),
+		    case 3: n = snprintf( buffer, buffer_size, format.c_str(),
 					       D( a ), D( b ), D( c ) ); break;
-		    case 4: n = std::snprintf( buffer, buffer_size, format.c_str(),
+		    case 4: n = snprintf( buffer, buffer_size, format.c_str(),
 					       D( a ), D( b ), D( c ), D( d ) ); break;
-		    case 5: n = std::snprintf( buffer, buffer_size, format.c_str(),
+		    case 5: n = snprintf( buffer, buffer_size, format.c_str(),
 					       D( a ), D( b ), D( c ), D( d ), D( e ) ); break;
-		    case 6: n = std::snprintf( buffer, buffer_size, format.c_str(),
+		    case 6: n = snprintf( buffer, buffer_size, format.c_str(),
 					       D( a ), D( b ), D( c ), D( d ), D( e ), D( f ) ); break;
 		}
 		
--- xstow-0.5.1.orig/src/main.cpp
+++ xstow-0.5.1/src/main.cpp
@@ -1,3 +1,4 @@
+#include <cstdlib>
 #include <iostream>
 
 #include "local_config.h"
--- xstow-0.5.1.orig/src/cppdir.cpp
+++ xstow-0.5.1/src/cppdir.cpp
@@ -1,6 +1,8 @@
 #include "cppdir.h"
 #include "debug.h"
 
+#include <cstdlib>
+
 #define OUT(level) DEBUG_OUT( level, MODULE_CPPDIR)
 
 extern "C" {
--- xstow-0.5.1.orig/src/setup.cpp
+++ xstow-0.5.1/src/setup.cpp
@@ -5,6 +5,8 @@
 #include "debug.h"
 #include "nignore.h"
 
+#include <cstdlib>
+
 #undef OUT
 
 #define OUT( level ) DEBUG_OUT( level, MODULE_SETUP )
--- xstow-0.5.1.orig/src/tree.cpp
+++ xstow-0.5.1/src/tree.cpp
@@ -26,6 +26,7 @@
 
 
 #include <algorithm>
+#include <cstring>
 
 #define OUT(level) DEBUG_OUT(level, MODULE_TREE)