2aacef
From a43bf9f897002744610a9ea5ce7bdc91c3e3dc83 Mon Sep 17 00:00:00 2001
2aacef
From: Khem Raj <raj.khem@gmail.com>
2aacef
Date: Tue, 8 Nov 2022 12:21:35 -0800
2aacef
Subject: [PATCH] networkd-ipv4acd.c: Use net/if.h for getting IFF_LOOPBACK
2aacef
 definition
2aacef
2aacef
This helps in avoiding compiling errors on musl. Definition of
2aacef
IFF_LOOPBACK is the reason for including linux/if_arp.h, this however
2aacef
could be obtained from net/if.h glibc header equally and makes it
2aacef
portable as well.
2aacef
2aacef
(cherry picked from commit 239e4a42a69c31e55e58618d800e0d68c68931d3)
2aacef
2aacef
Related: #2138081
2aacef
---
2aacef
 src/network/networkd-ipv4acd.c | 3 ++-
2aacef
 1 file changed, 2 insertions(+), 1 deletion(-)
2aacef
2aacef
diff --git a/src/network/networkd-ipv4acd.c b/src/network/networkd-ipv4acd.c
2aacef
index 4127657ebd..877dee00ec 100644
2aacef
--- a/src/network/networkd-ipv4acd.c
2aacef
+++ b/src/network/networkd-ipv4acd.c
2aacef
@@ -1,6 +1,7 @@
2aacef
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2aacef
 
2aacef
-#include <linux/if_arp.h>
2aacef
+#include <net/if.h> /* IFF_LOOPBACK */
2aacef
+#include <net/if_arp.h> /* ARPHRD_ETHER */
2aacef
 
2aacef
 #include "sd-dhcp-client.h"
2aacef
 #include "sd-ipv4acd.h"