error: expected declaration specifiers or '...' before '(' token

network_monitor/netlink.c: In function 'add_netcard_node':
network_monitor/list.h:25:23: error: expected declaration specifiers or '...' before '(' token
   25 |         const typeof( ((type *)0)->member ) *__mptr = (ptr);    \
      |                       ^

Add -std=gnu11 to CFLAGS

or

Use __typeof__ instead of typeof

https://gcc.gnu.org/onlinedocs/gcc/Typeof.html

0%