* Fix building Firefox 3.6 with GCC 4.6.

svn path=/nixpkgs/branches/stdenv-updates/; revision=32387
This commit is contained in:
Eelco Dolstra 2012-02-18 18:07:22 +00:00
parent 81fa68da99
commit cdece69773
2 changed files with 19 additions and 3 deletions

View File

@ -12,14 +12,14 @@
rec {
firefoxVersion = "3.6.21";
firefoxVersion = "3.6.27";
xulVersion = "1.9.2.21"; # this attribute is used by other packages
xulVersion = "1.9.2.27"; # this attribute is used by other packages
src = fetchurl {
url = "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${firefoxVersion}/source/firefox-${firefoxVersion}.source.tar.bz2";
sha1 = "3c1f001ad22d93b48e191999f548b4382db3d36c";
sha1 = "dd472a10e4ef5b017f00074d0325be13e832d610";
};
@ -50,6 +50,9 @@ rec {
./xulrunner-chromium-mips.patch
./xulrunner-mips-n32.patch
./xulrunner-1.9.2_beta4-mips-bus-error.patch
# Fix building on GCC 4.6.
./gcc-4.6.patch
];
buildInputs =

View File

@ -0,0 +1,13 @@
https://346825.bugs.gentoo.org/attachment.cgi?id=270163
--- a/gfx/ots/src/os2.cc
+++ b/gfx/ots/src/os2.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <cstddef>
+
#include "os2.h"
#include "head.h"