Skip to content

Commit

Permalink
Fix building on OpenBSD
Browse files Browse the repository at this point in the history
In file included from ../../src/common/sendpacket.h:30:
/usr/include/netinet/if_ether.h:154:17: fatal error: field has incomplete type 'struct arphdr'
        struct   arphdr ea_hdr;                 /* fixed-size header */
                        ^
/usr/include/netinet/if_ether.h:154:10: note: forward declaration of 'struct arphdr'
        struct   arphdr ea_hdr;                 /* fixed-size header */
                 ^
1 error generated.
  • Loading branch information
brad0 committed Dec 9, 2024
1 parent 6fcbf03 commit 8866713
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/common/sendpacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#ifdef __NetBSD__
#include <net/if_ether.h>
#elif ! defined(__HAIKU__)
#include <net/if.h>
#include <netinet/if_ether.h>
#endif

Expand Down

0 comments on commit 8866713

Please sign in to comment.