From: Michael Tokarev Date: Fri, 1 Aug 2014 19:20:24 +0000 (+0400) Subject: l2tpv3 (configure): it is linux-specific X-Git-Tag: v2.1.1~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e22d5dc07350b81006ca6b9bf5fd7b517e2574ee;p=thirdparty%2Fqemu.git l2tpv3 (configure): it is linux-specific Some non-linux systems, for example a system with FreeBSD kernel and glibc, may declare struct mmsghdr (in glibc) but may not have linux-specific header file linux/ip.h. The actual implementation in qemu includes this linux-specific header file unconditionally, so compilation fails if it is not present. Include this header in the configure test too. Signed-off-by: Michael Tokarev (cherry picked from commit bff6cb72961f1bd2c766efe85ff5850fd8d7e77d) Signed-off-by: Michael Roth --- diff --git a/configure b/configure index f7685b565cf..f49e61888e3 100755 --- a/configure +++ b/configure @@ -1723,6 +1723,7 @@ fi cat > $TMPC < +#include int main(void) { return sizeof(struct mmsghdr); } EOF if compile_prog "" "" ; then