From: Eric Blake Date: Fri, 18 May 2012 15:42:25 +0000 (-0600) Subject: build: fix virnetlink on glibc 2.11 X-Git-Tag: v0.9.13-rc1~236 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8314e78f9c5d5ad84cfda5c61000e50d91c4a1e;p=thirdparty%2Flibvirt.git build: fix virnetlink on glibc 2.11 We were being lazy - virnetlink.c was getting uint32_t as a side-effect from glibc 2.14's , but older glibc 2.11 does not provide uint32_t from . In fact, POSIX states that need only provide intptr_t, not all of , so the bug really is ours. Reported by Jonathan Alescio. * src/util/virnetlink.h: Include . --- diff --git a/src/util/virnetlink.h b/src/util/virnetlink.h index bafe8caf83..8ec27c9016 100644 --- a/src/util/virnetlink.h +++ b/src/util/virnetlink.h @@ -23,6 +23,8 @@ # include "config.h" # include "internal.h" +# include + # if defined(__linux__) && defined(HAVE_LIBNL) # include