November 24, 2010

atomic.h issue in Ubuntu 9.4

I can't compile atomic.h in Ubuntu 9.4, below is source code:

#include
#include

#include

int main(void) {
puts("!!!Hello World!!!");
return EXIT_SUCCESS;
}

the following is the error info:
/usr/src/linux-headers-2.6.28-11/arch/x86/include/asm/alternative.h:45: 错误: expected specifier-qualifier-list before ‘u8'

Can anyone help me?