mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
Fix link_addr detection
link_addr detection in configure always reports that link_addr is missing because it uses link_addr(NULL, NULL) in AC_LINK_IFELSE check with limited set of headers that doesn't define NULL. Fix by replacing 'NULL' with just '0'.
This commit is contained in:
parent
b4a40dd92d
commit
7e1208297d
@ -2401,7 +2401,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM(
|
||||
#include <net/if_dl.h>
|
||||
]],
|
||||
[[
|
||||
link_addr(NULL, NULL)]])],
|
||||
link_addr(0, 0)]])],
|
||||
[AC_DEFINE([HAVE_DECL_LINK_ADDR],
|
||||
[1],
|
||||
[whether link_addr is available])])
|
||||
|
Loading…
x
Reference in New Issue
Block a user