Added mozilla-breakpad.patch to fix build with crashreporter enabled
authorWolfgang Rosenauer <wr@rosenauer.org>
Sat, 19 Dec 2009 21:51:55 +0100
changeset 25 fa8130c45304
parent 24 ca988be0905b
child 26 bfb0e78e1a7d
Added mozilla-breakpad.patch to fix build with crashreporter enabled
mozilla-breakpad.patch
mozilla-xulrunner192/mozilla-breakpad.patch
series
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mozilla-breakpad.patch	Sat Dec 19 21:51:55 2009 +0100
@@ -0,0 +1,66 @@
+From: Wolfgang Rosenauer <wr@rosenauer.org>
+Subject: missing declaration with newer compilers
+
+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
+--- a/toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.cc
++++ b/toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.cc
+@@ -28,16 +28,17 @@
+ // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ 
+ #include <signal.h>
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ #include <unistd.h>
++#include <stdio.h>
+ 
+ #include <cassert>
+ #include <cstdlib>
+ #include <ctime>
+ #include <linux/limits.h>
+ 
+ #include "client/linux/handler/exception_handler.h"
+ #include "common/linux/guid_creator.h"
+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
+--- a/toolkit/crashreporter/google-breakpad/src/client/linux/handler/minidump_generator.cc
++++ b/toolkit/crashreporter/google-breakpad/src/client/linux/handler/minidump_generator.cc
+@@ -36,16 +36,17 @@
+ #include <sys/types.h>
+ #include <unistd.h>
+ #include <sys/utsname.h>
+ #include <sys/wait.h>
+ 
+ #include <cstdlib>
+ #include <ctime>
+ #include <string.h>
++#include <stdio.h>
+ 
+ #include "common/linux/file_id.h"
+ #include "client/linux/handler/linux_thread.h"
+ #include "client/minidump_file_writer.h"
+ #include "client/minidump_file_writer-inl.h"
+ #include "google_breakpad/common/minidump_format.h"
+ #include "client/linux/handler/minidump_generator.h"
+ 
+diff --git a/toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc b/toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc
+--- a/toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc
++++ b/toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc
+@@ -26,16 +26,17 @@
+ // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ 
+ #include <a.out.h>
+ #include <cstdarg>
+ #include <cstdlib>
+ #include <cxxabi.h>
++#include <stdio.h>
+ #include <elf.h>
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <link.h>
+ #include <sys/mman.h>
+ #include <stab.h>
+ #include <sys/stat.h>
+ #include <sys/types.h>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mozilla-xulrunner192/mozilla-breakpad.patch	Sat Dec 19 21:51:55 2009 +0100
@@ -0,0 +1,1 @@
+../mozilla-breakpad.patch
\ No newline at end of file
--- a/series	Sat Dec 19 21:51:16 2009 +0100
+++ b/series	Sat Dec 19 21:51:55 2009 +0100
@@ -12,6 +12,7 @@
 mozilla-gconf-backend.patch
 gecko-lockdown.patch
 toolkit-ui-lockdown.patch
+mozilla-breakpad.patch
 
 # Firefox patches
 firefox-libxul-sdk.patch