- Fix build on 9.x and above. 8.x needs some more investigation.

This commit is contained in:
Pietro Cerutti 2014-09-15 07:28:58 +00:00
parent c7d3befa0c
commit 4de736ea9a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=368250
3 changed files with 30 additions and 8 deletions

View File

@ -1,10 +1,11 @@
--- bin/debugger/main.cpp.orig 2012-06-21 11:19:43.000000000 +0200
+++ bin/debugger/main.cpp 2012-06-21 11:19:27.000000000 +0200
@@ -22,6 +22,8 @@
--- bin/debugger/main.cpp.orig 2012-10-04 00:35:17.000000000 +0200
+++ bin/debugger/main.cpp 2014-09-11 15:46:51.000000000 +0200
@@ -22,6 +22,9 @@
#include <unistd.h>
#endif
+#include <signal.h>
+#include <stdlib.h>
+
#include <vector>

View File

@ -0,0 +1,11 @@
--- bin/zorbacmd.cpp.orig 2014-09-12 09:26:04.000000000 +0200
+++ bin/zorbacmd.cpp 2014-09-12 09:26:23.000000000 +0200
@@ -16,6 +16,8 @@
#include "zorbacmdproperties.h"
+#include <stdlib.h>
+
#include <memory>
#include <iostream>
#include <fstream>

View File

@ -1,6 +1,16 @@
--- src/util/string_util.cpp.orig 2012-06-13 06:56:48.000000000 +0200
+++ src/util/string_util.cpp 2012-06-21 09:49:48.000000000 +0200
@@ -92,7 +92,11 @@
--- src/util/string_util.cpp.orig 2012-10-04 00:35:16.000000000 +0200
+++ src/util/string_util.cpp 2014-09-12 11:43:08.000000000 +0200
@@ -18,6 +18,9 @@
#include <cerrno>
#include <cstdlib>
+#include <stdlib.h>
+#include <limits.h>
+
#include "ascii_util.h"
#include "cxx_util.h"
#include "string_util.h"
@@ -92,7 +95,11 @@
float atof( char const *s ) {
char *end;
errno = 0;
@ -12,7 +22,7 @@
check_parse_number( s, end, &result );
return result;
}
@@ -100,7 +104,11 @@
@@ -100,7 +107,11 @@
long long atoll( char const *s ) {
char *end;
errno = 0;
@ -24,7 +34,7 @@
check_parse_number( s, end, static_cast<long long*>( nullptr ) );
return result;
}
@@ -114,7 +122,11 @@
@@ -114,7 +125,11 @@
char *end;
errno = 0;