Problems compiling under RHEL 5

Hi,

after using CUDA successfully on Windows XP and realizing there’s no support for Windows XP x64 yet, I tried to use Linux (I’m running RHEL 5.0).
When I try to compile, I get an error message saying ‘expected “.” or “;” before “void”’ for this line in device_functions.h:

func(inline attribute((always_inline)) void __syncthreads(void))
{
volatile int _ = 0;
L: if (__cudaSynchronizeThreads((void**)&&L, (void*)&_)) goto L;
}

If I delete the “inline attribute((always_inline))”, everything compiles fine. Does anyone know what this part is doing and why it might be throwing an error?