configure.ac: robustify netlink.h check
authorDan Winship <danw@gnome.org>
Wed, 14 Dec 2011 15:19:13 +0000 (10:19 -0500)
committerDan Winship <danw@gnome.org>
Thu, 15 Dec 2011 14:39:06 +0000 (09:39 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=666173

configure.ac

index 2115a02..ead446d 100644 (file)
@@ -1112,7 +1112,8 @@ fi
 AC_SUBST(NETWORK_LIBS)
 
 AC_CHECK_HEADER([linux/netlink.h],
-               [AC_DEFINE(HAVE_NETLINK, 1, [We have AF_NETLINK sockets])])
+               [AC_DEFINE(HAVE_NETLINK, 1, [We have AF_NETLINK sockets])],,
+               [#include <sys/socket.h>])
 AM_CONDITIONAL(HAVE_NETLINK, [test "$ac_cv_header_linux_netlink_h" = "yes"])
 
 case $host in