pmaports/temp/dhcpcd/old-kernel.patch
JuniorJPDJ 67ceee4079
temp/dhcpcd: fix for old kernels (!228)
Fork the package from Alpine and undefine IFA_F_NOPREFIXROUTE during
compilation, so it works with the old downstream kernels that do not
have this feature yet.
2019-02-28 13:43:28 +01:00

11 lines
305 B
Diff

--- a/src/if-linux.c
+++ b/src/if-linux.c
@@ -97,6 +97,8 @@ int if_getssid_wext(const char *ifname, uint8_t *ssid);
#define BPF_ETHCOOK -ETH_HLEN
#define BPF_WHOLEPACKET 0x0fffffff /* work around buggy LPF filters */
+#undef IFA_F_NOPREFIXROUTE
+
struct priv {
int route_fd;
uint32_t route_pid;