(backport) sd-radv: avoid redefinition of struct in6_addr
authorHans-Christian Noren Egtvedt <hegtvedt@cisco.com>
Mon, 25 Sep 2017 14:39:32 +0000 (16:39 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Thu, 25 Jan 2024 10:55:12 +0000 (11:55 +0100)
Both netinet/icmp6.h and linux/in6.h will define struct in6_addr, and in
user space we want to use the netinet/icmp6.h variant.

Fixes build problem:
In file included from src/libsystemd-network/sd-radv.c:23:0:
/home/hegtvedt/work/os/product/sunrise/root/_build/v2/include/linux/in6.h:30:8:
error: redefinition of 'struct in6_addr'

Change-Id: I5e36d3a8a2f73681241436ab02fec4440a6a1902

src/libsystemd-network/sd-radv.c

index f23275a..bd03738 100644 (file)
@@ -20,7 +20,6 @@
 #include <netinet/icmp6.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
-#include <linux/in6.h>
 
 #include "sd-radv.h"