farp: Fix build with musl C library

Same issue as described in the previous commit.

Fixes: 187c72d1af ("dhcp: Port the plugin to FreeBSD/macOS")
This commit is contained in:
Tobias Brunner
2024-03-22 11:41:13 +01:00
parent f5b1ca4ef6
commit 540881627f
+4 -3
View File
@@ -20,12 +20,14 @@
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>
#include <net/ethernet.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#if !defined(__APPLE__) && !defined(__FreeBSD__) #if !defined(__APPLE__) && !defined(__FreeBSD__)
#include <sys/socket.h> #include <sys/socket.h>
#include <linux/if_arp.h> #include <net/if_arp.h>
#include <linux/if_ether.h> #include <netinet/if_ether.h>
#include <netpacket/packet.h>
#include <linux/filter.h> #include <linux/filter.h>
#else #else
#include <net/bpf.h> #include <net/bpf.h>
@@ -33,7 +35,6 @@
#include <net/if_dl.h> #include <net/if_dl.h>
#endif /* !defined(__APPLE__) && !defined(__FreeBSD__) */ #endif /* !defined(__APPLE__) && !defined(__FreeBSD__) */
#include <net/ethernet.h>
#include <daemon.h> #include <daemon.h>
#include <threading/thread.h> #include <threading/thread.h>
#include <processing/jobs/callback_job.h> #include <processing/jobs/callback_job.h>