Submitted By: Andrew Benton Date: 2012-03-18 Initial Package Version: 11.0 Upstream Status: Submitted to Mozilla Bugzilla bug #736765 Origin: http://gcc.gnu.org/gcc-4.7/porting_to.html Description: Fixes compiling firefox-11.0 with gcc-4.7 The same effect can be achieved with these seds: sed -i 's:#if defined(ANDROID):& || defined(OS_POSIX):' \ ipc/chromium/src/base/file_util.cc sed -i '/fcntl.h/a#include ' ipc/chromium/src/base/file_util_linux.cc sed -i '/fcntl.h/a#include ' \ ipc/chromium/src/base/message_pump_libevent.cc sed -i '/sys\/time\.h/a#include ' ipc/chromium/src/base/time_posix.cc diff -Naur mozilla-release.orig/ipc/chromium/src/base/file_util.cc mozilla-release/ipc/chromium/src/base/file_util.cc --- mozilla-release.orig/ipc/chromium/src/base/file_util.cc 2012-03-13 01:36:29.000000000 +0000 +++ mozilla-release/ipc/chromium/src/base/file_util.cc 2012-03-18 01:23:05.750834540 +0000 @@ -8,7 +8,7 @@ #include #endif #include -#if defined(ANDROID) +#if defined(ANDROID) || defined(OS_POSIX) #include #endif diff -Naur mozilla-release.orig/ipc/chromium/src/base/file_util_linux.cc mozilla-release/ipc/chromium/src/base/file_util_linux.cc --- mozilla-release.orig/ipc/chromium/src/base/file_util_linux.cc 2012-03-13 01:36:29.000000000 +0000 +++ mozilla-release/ipc/chromium/src/base/file_util_linux.cc 2012-03-18 01:23:05.757501140 +0000 @@ -5,6 +5,7 @@ #include "base/file_util.h" #include +#include #include #include diff -Naur mozilla-release.orig/ipc/chromium/src/base/message_pump_libevent.cc mozilla-release/ipc/chromium/src/base/message_pump_libevent.cc --- mozilla-release.orig/ipc/chromium/src/base/message_pump_libevent.cc 2012-03-13 01:36:29.000000000 +0000 +++ mozilla-release/ipc/chromium/src/base/message_pump_libevent.cc 2012-03-18 01:23:05.760834441 +0000 @@ -6,6 +6,7 @@ #include #include +#include #include "eintr_wrapper.h" #include "base/logging.h" diff -Naur mozilla-release.orig/ipc/chromium/src/base/time_posix.cc mozilla-release/ipc/chromium/src/base/time_posix.cc --- mozilla-release.orig/ipc/chromium/src/base/time_posix.cc 2012-03-13 01:36:29.000000000 +0000 +++ mozilla-release/ipc/chromium/src/base/time_posix.cc 2012-03-18 01:23:05.767501042 +0000 @@ -8,6 +8,7 @@ #include #endif #include +#include #ifdef ANDROID #include #else