Commit 90e0a869 by Guido Trotter Committed by Daniel Lezcano

Include <sys/socket.h> before checking for netlink

With some versions of the compiler/headers linux/netlink.h won't compile if sys/socket.h is defined before it. Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by: 's avatarGuido Trotter <ultrotter@quaqua.net>
parent 5c320b76
...@@ -25,10 +25,11 @@ AS_AC_EXPAND(LOCALSTATEDIR, $localstatedir) ...@@ -25,10 +25,11 @@ AS_AC_EXPAND(LOCALSTATEDIR, $localstatedir)
AS_AC_EXPAND(LXCPATH, "${localstatedir}/lib/lxc") AS_AC_EXPAND(LXCPATH, "${localstatedir}/lib/lxc")
AS_AC_EXPAND(LXC_GENERATE_DATE, "$(date)") AS_AC_EXPAND(LXC_GENERATE_DATE, "$(date)")
AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h], [], AC_MSG_ERROR([netlink headers not found. Please install the linux kernel headers.]), AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h],
[#include <linux/types.h> [],
#include <bits/sockaddr.h> AC_MSG_ERROR([netlink headers not found. Please install the linux kernel headers.]),
#include <linux/socket.h>]) [#include <sys/socket.h>
])
AC_CHECK_HEADERS([sys/capability.h], [], AC_MSG_ERROR([please install libcap-devel.]), AC_CHECK_HEADERS([sys/capability.h], [], AC_MSG_ERROR([please install libcap-devel.]),
[#include <sys/types.h> [#include <sys/types.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment