This I believe is a bug in kernel headers on openSUSE PPC64 but maybe there is some workaround.
includes asm/stat.h which ends up with errors:
/usr/include/asm/stat.h:31:2: error: unknown type name ‘ino_t’
/usr/include/asm/stat.h:34:2: error: unknown type name ‘mode_t’
/usr/include/asm/stat.h:39:2: error: unknown type name ‘uid_t’
/usr/include/asm/stat.h:40:2: error: unknown type name ‘gid_t’
/usr/include/asm/stat.h:42:2: error: unknown type name ‘off_t’
This obviously means that headers are not sanitized for userspace usage. Any ideas for a workaround?