]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile on Linux
authorRoy Marples <roy@marples.name>
Sat, 28 Mar 2020 16:05:28 +0000 (16:05 +0000)
committerRoy Marples <roy@marples.name>
Sat, 28 Mar 2020 16:05:28 +0000 (16:05 +0000)
src/script.c

index 04620ce104e22fed4afed250af6999256c232a03..bb17d12ca1606a122f488a455af33e957b968ef9 100644 (file)
@@ -570,6 +570,10 @@ send_interface(struct fd_list *fd, const struct interface *ifp, int af)
        const struct dhcp6_state *d6;
 #endif
 
+#ifndef AF_LINK
+#define        AF_LINK AF_PACKET
+#endif
+
        if (af == AF_UNSPEC || af == AF_LINK) {
                const char *reason;