Skip to contentSkip to conversation

Userspace header linux/netlink.h uses GCC-specific 'typeof'

DISCUSSION Thorben Hasenpusch 1 participant 1 message Sep 10, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Compilation of a user space program which includes linux/netlink.h and uses NL_MMAP_MSG_ALIGN fails if GCC is ordered not to use GNU extensions.
__KERNEL_ALIGN is defined to use typeof which is a GCC-extension and not supported by standard C/C++.
Can that be changed so standard conforming C/C++ compiles successfully?

Regards.