summaryrefslogtreecommitdiff
path: root/package/firefox/patches
diff options
context:
space:
mode:
Diffstat (limited to 'package/firefox/patches')
-rw-r--r--package/firefox/patches/patch-ipc_chromium_src_base_file_util_cc12
-rw-r--r--package/firefox/patches/patch-ipc_chromium_src_base_file_util_linux_cc10
-rw-r--r--package/firefox/patches/patch-ipc_chromium_src_base_time_posix_cc11
3 files changed, 33 insertions, 0 deletions
diff --git a/package/firefox/patches/patch-ipc_chromium_src_base_file_util_cc b/package/firefox/patches/patch-ipc_chromium_src_base_file_util_cc
new file mode 100644
index 000000000..882ed195a
--- /dev/null
+++ b/package/firefox/patches/patch-ipc_chromium_src_base_file_util_cc
@@ -0,0 +1,12 @@
+--- mozilla-release.orig/ipc/chromium/src/base/file_util.cc 2011-07-08 03:15:22.000000000 +0200
++++ mozilla-release/ipc/chromium/src/base/file_util.cc 2012-10-03 13:44:11.000000000 +0200
+@@ -8,9 +8,7 @@
+ #include <io.h>
+ #endif
+ #include <stdio.h>
+-#if defined(ANDROID)
+ #include <unistd.h>
+-#endif
+
+ #include <fstream>
+
diff --git a/package/firefox/patches/patch-ipc_chromium_src_base_file_util_linux_cc b/package/firefox/patches/patch-ipc_chromium_src_base_file_util_linux_cc
new file mode 100644
index 000000000..eb3e50b3b
--- /dev/null
+++ b/package/firefox/patches/patch-ipc_chromium_src_base_file_util_linux_cc
@@ -0,0 +1,10 @@
+--- mozilla-release.orig/ipc/chromium/src/base/file_util_linux.cc 2011-07-08 03:15:22.000000000 +0200
++++ mozilla-release/ipc/chromium/src/base/file_util_linux.cc 2012-10-03 13:50:20.000000000 +0200
+@@ -5,6 +5,7 @@
+ #include "base/file_util.h"
+
+ #include <fcntl.h>
++#include <unistd.h>
+
+ #include <string>
+ #include <vector>
diff --git a/package/firefox/patches/patch-ipc_chromium_src_base_time_posix_cc b/package/firefox/patches/patch-ipc_chromium_src_base_time_posix_cc
new file mode 100644
index 000000000..7d0bc5934
--- /dev/null
+++ b/package/firefox/patches/patch-ipc_chromium_src_base_time_posix_cc
@@ -0,0 +1,11 @@
+--- mozilla-release.orig/ipc/chromium/src/base/time_posix.cc 2011-07-08 03:15:22.000000000 +0200
++++ mozilla-release/ipc/chromium/src/base/time_posix.cc 2012-10-03 13:54:12.000000000 +0200
+@@ -164,7 +164,7 @@ TimeTicks TimeTicks::Now() {
+ // With numer and denom = 1 (the expected case), the 64-bit absolute time
+ // reported in nanoseconds is enough to last nearly 585 years.
+
+-#elif defined(OS_POSIX) && \
++#elif defined(__linux__) || defined(OS_POSIX) && \
+ defined(_POSIX_MONOTONIC_CLOCK) && _POSIX_MONOTONIC_CLOCK >= 0
+
+ struct timespec ts;