]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
farp: Fix build with musl C library
authorTobias Brunner <tobias@strongswan.org>
Fri, 22 Mar 2024 09:42:34 +0000 (10:42 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 22 Mar 2024 10:41:13 +0000 (11:41 +0100)
Same issue as described in the previous commit.

Fixes: 187c72d1afdc ("dhcp: Port the plugin to FreeBSD/macOS")
src/libcharon/plugins/farp/farp_spoofer.c

index 65451263f5fd21e2d8728e349f7299a83d2574c1..7f2c9bef419fd179b01a1d47acb8be2447ec3e46 100644 (file)
 
 #include <errno.h>
 #include <unistd.h>
+#include <net/ethernet.h>
 #include <sys/ioctl.h>
 
 #if !defined(__APPLE__) && !defined(__FreeBSD__)
 #include <sys/socket.h>
-#include <linux/if_arp.h>
-#include <linux/if_ether.h>
+#include <net/if_arp.h>
+#include <netinet/if_ether.h>
+#include <netpacket/packet.h>
 #include <linux/filter.h>
 #else
 #include <net/bpf.h>
@@ -33,7 +35,6 @@
 #include <net/if_dl.h>
 #endif /* !defined(__APPLE__) && !defined(__FreeBSD__) */
 
-#include <net/ethernet.h>
 #include <daemon.h>
 #include <threading/thread.h>
 #include <processing/jobs/callback_job.h>