commit ab75bfb43b52729f11621562a57f872ad2cffc7b
Author: Marc Weber <marco-oweber@gmx.de>
Date:   Mon Jul 18 04:21:25 2011 +0200

    make xulrunner compile on linux-3.0

diff --git a/pkgs/applications/networking/browsers/firefox/3.6.nix b/pkgs/applications/networking/browsers/firefox/3.6.nix
index 2d472ce..a4e82a4 100644
--- a/pkgs/applications/networking/browsers/firefox/3.6.nix
+++ b/pkgs/applications/networking/browsers/firefox/3.6.nix
@@ -45,6 +45,13 @@ rec {
     
     inherit src;
 
+    # make it compile on linux-3.0. Is there more that has to be changed ?
+    postUnpack = ''
+      ( cd mozilla-*
+        [ -f security/coreconf/Linux3.0.mk ] || cp security/coreconf/Linux2.6.mk security/coreconf/Linux3.0.mk
+      )
+    '';
+
     patches = [
       # Loongson2f related patches:
       ./xulrunner-chromium-mips.patch
diff --git a/pkgs/applications/networking/browsers/firefox/4.0.nix b/pkgs/applications/networking/browsers/firefox/4.0.nix
index 6d988fb..4452595 100644
--- a/pkgs/applications/networking/browsers/firefox/4.0.nix
+++ b/pkgs/applications/networking/browsers/firefox/4.0.nix
@@ -54,6 +54,14 @@ rec {
     
     inherit src;
 
+    # make it compile on linux-3.0. Is there more that has to be changed ?
+    postUnpack = ''
+      ( cd mozilla-*
+        [ -f security/coreconf/Linux3.0.mk ] || cp security/coreconf/Linux2.6.mk security/coreconf/Linux3.0.mk
+      )
+    '';
+
+
     buildInputs =
       [ pkgconfig gtk perl zip libIDL libjpeg libpng zlib cairo bzip2
         python dbus dbus_glib pango freetype fontconfig xlibs.libXi
