[haiku-development] Patch to fix PPC build of ReiserFS

  • From: "Urias McCullough" <umccullough@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 1 Jul 2008 21:55:23 -0700

The recent addition of ReiserFS breaks the PPC build when GPL Addons
are enabled.

Below is a patch that fixes the build again, although it's untested of course:

Index: src/add-ons/kernel/file_systems/reiserfs/Key.h
===================================================================
--- src/add-ons/kernel/file_systems/reiserfs/Key.h      (revision 26212)
+++ src/add-ons/kernel/file_systems/reiserfs/Key.h      (working copy)
@@ -130,7 +130,7 @@
                #else
                        offset_v2 temp;
                        *(uint64*)&temp = h2le(*(uint64*)&u.k_offset_v2);
-                       return tmp.k_offset;
+                       return temp.k_offset;
                #endif
        }
        uint32 _GetType() const
@@ -140,7 +140,7 @@
                #else
                        offset_v2 temp;
                        *(uint64*)&temp = h2le(*(uint64*)&u.k_offset_v2);
-                       return tmp.k_type;
+                       return temp.k_type;
                #endif
        }
        void _SetOffsetAndType(uint64 offset, uint32 type)

Other related posts:

  • » [haiku-development] Patch to fix PPC build of ReiserFS