On Mon, 2004-08-30 at 13:20, Brian T wrote: > Not sure how to fix it for non-x86 then. Point me in the right direction? Welcome to the hell that is compatmac.h ;). Seriously though, maybe take a look at generic_ffs() in include/linux/bitops.h (in the 2.6 kernel). It's not optimized, but it should work for all architectures if I am reading things right. josh