The latest spin of the slice_start() slice_end() code in the
nacc-testing branch breaks compile.  The slice constants need to be
defined for both 32-bit and 64-bit powerpc.  Patch below fixes.

Index: libhugetlbfs/hugeutils.c
===================================================================
--- libhugetlbfs.orig/hugeutils.c       2007-03-06 12:39:13.000000000 +1100
+++ libhugetlbfs/hugeutils.c    2007-03-06 12:39:32.000000000 +1100
@@ -114,7 +114,7 @@ long gethugepagesize(void)
        return hpage_size;
 }
 
-#if defined(__powerpc64__)
+#if defined(__powerpc64__) || defined (__powerpc__)
 #define SLICE_LOW_SHIFT                28
 #define SLICE_HIGH_SHIFT       40
 


-- 
David Gibson                    | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_ _other_
                                | _way_ _around_!
http://www.ozlabs.org/~dgibson

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to