mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
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.
This commit is contained in:
parent
3de747c9a2
commit
500c246889
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user