mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 06:51:08 +01:00
authd: fix link failure in random_socket
The random_socket function isn't used, and the code can only be compiled if the function is optimised away (because it's static and unused) otherwise it will fail to link when "ipv4_addr" and "ipv6_addr" are not found. Fix this by modifying ipv4_addr and ipv6_addr so that they're not external variables.
This commit is contained in:
parent
1579e155b1
commit
3f6cbacc41
1 changed files with 2 additions and 2 deletions
|
@ -62,9 +62,9 @@ static PF res_readreply;
|
||||||
#define ANSWER_FIXED_SIZE (TYPE_SIZE + CLASS_SIZE + TTL_SIZE + RDLENGTH_SIZE)
|
#define ANSWER_FIXED_SIZE (TYPE_SIZE + CLASS_SIZE + TTL_SIZE + RDLENGTH_SIZE)
|
||||||
|
|
||||||
#ifdef RB_IPV6
|
#ifdef RB_IPV6
|
||||||
extern struct in6_addr ipv6_addr;
|
struct in6_addr ipv6_addr;
|
||||||
#endif
|
#endif
|
||||||
extern struct in_addr ipv4_addr;
|
struct in_addr ipv4_addr;
|
||||||
|
|
||||||
struct reslist
|
struct reslist
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue