[glib] configure.ac: robustify netlink.h check



commit 84df41c02c8806071d18e532432dff00a48ff369
Author: Dan Winship <danw gnome org>
Date:   Wed Dec 14 10:19:13 2011 -0500

    configure.ac: robustify netlink.h check
    
    https://bugzilla.gnome.org/show_bug.cgi?id=666173

 configure.ac |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2115a02..ead446d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]