AM_PROG_CC_C_O
AC_GNU_SOURCE
AC_PROG_LIBTOOL
-AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h],, AC_MSG_ERROR([netlink headers not found]), [[]])
+AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h], [], AC_MSG_ERROR([netlink headers not found]),
+ [#include <linux/types.h>
+ #include <bits/sockaddr.h>
+ #include <linux/socket.h>])
AC_PROG_GCC_TRADITIONAL
if test "x$GCC" = "xyes"; then