summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2012-08-28 12:01:50 +0200
committerMichal Privoznik <mprivozn@redhat.com>2012-08-28 12:09:43 +0200
commit500c24688942cb5bf2eb1d7d238531e86788eb29 (patch)
tree2d7e31a90c2c0dc8d8e374831b5d271d815de326 /src/util
parentdocs: CPU allocation and pinning clarification (diff)
downloadlibvirt-500c24688942cb5bf2eb1d7d238531e86788eb29.tar.gz
libvirt-500c24688942cb5bf2eb1d7d238531e86788eb29.tar.bz2
libvirt-500c24688942cb5bf2eb1d7d238531e86788eb29.zip
build: define 'inline' iff HAVE_LIBNL1
Previous commit 0b4b53bb80 defined 'inline' to prevent broken build on systems with libnl1 headers. However, it broke build on systems with libnl3 headers. Therefore we must make that fix conditional.
Diffstat (limited to 'src/util')
-rw-r--r--src/util/virnetlink.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/util/virnetlink.h b/src/util/virnetlink.h
index 82154de08..b1a1750e1 100644
--- a/src/util/virnetlink.h
+++ b/src/util/virnetlink.h
@@ -28,9 +28,13 @@
/* Work around a bug where older libnl-1 headers expected older gcc
* semantics of 'extern inline' that conflict with C99 semantics. */
-# define inline
+# ifdef HAVE_LIBNL1
+# define inline
+# endif
# include <netlink/msg.h>
-# undef inline
+# ifdef HAVE_LIBNL1
+# undef inline
+# endif
# else