1 From: Wolfgang Rosenauer <wr@rosenauer.org> |
|
2 Subject: missing declaration with newer compilers |
|
3 |
|
4 diff --git a/toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.cc b/toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.cc |
|
5 --- a/toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.cc |
|
6 +++ b/toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.cc |
|
7 @@ -28,16 +28,17 @@ |
|
8 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|
9 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
|
10 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
11 |
|
12 #include <signal.h> |
|
13 #include <sys/stat.h> |
|
14 #include <sys/types.h> |
|
15 #include <unistd.h> |
|
16 +#include <stdio.h> |
|
17 |
|
18 #include <cassert> |
|
19 #include <cstdlib> |
|
20 #include <ctime> |
|
21 #include <linux/limits.h> |
|
22 |
|
23 #include "client/linux/handler/exception_handler.h" |
|
24 #include "common/linux/guid_creator.h" |
|
25 diff --git a/toolkit/crashreporter/google-breakpad/src/client/linux/handler/minidump_generator.cc b/toolkit/crashreporter/google-breakpad/src/client/linux/handler/minidump_generator.cc |
|
26 --- a/toolkit/crashreporter/google-breakpad/src/client/linux/handler/minidump_generator.cc |
|
27 +++ b/toolkit/crashreporter/google-breakpad/src/client/linux/handler/minidump_generator.cc |
|
28 @@ -36,16 +36,17 @@ |
|
29 #include <sys/types.h> |
|
30 #include <unistd.h> |
|
31 #include <sys/utsname.h> |
|
32 #include <sys/wait.h> |
|
33 |
|
34 #include <cstdlib> |
|
35 #include <ctime> |
|
36 #include <string.h> |
|
37 +#include <stdio.h> |
|
38 |
|
39 #include "common/linux/file_id.h" |
|
40 #include "client/linux/handler/linux_thread.h" |
|
41 #include "client/minidump_file_writer.h" |
|
42 #include "client/minidump_file_writer-inl.h" |
|
43 #include "google_breakpad/common/minidump_format.h" |
|
44 #include "client/linux/handler/minidump_generator.h" |
|
45 |
|
46 diff --git a/toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc b/toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc |
|
47 --- a/toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc |
|
48 +++ b/toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc |
|
49 @@ -26,16 +26,17 @@ |
|
50 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|
51 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
|
52 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
53 |
|
54 #include <a.out.h> |
|
55 #include <cstdarg> |
|
56 #include <cstdlib> |
|
57 #include <cxxabi.h> |
|
58 +#include <stdio.h> |
|
59 #include <elf.h> |
|
60 #include <errno.h> |
|
61 #include <fcntl.h> |
|
62 #include <link.h> |
|
63 #include <sys/mman.h> |
|
64 #include <stab.h> |
|
65 #include <sys/stat.h> |
|
66 #include <sys/types.h> |
|