Skip to content

Commit 27c2190

Browse files
committed
Don't mess with struct arphdr on FreeBSD
net/if_arp.h is included through some other include here, and this result in conflicting types for struct arphdr. Include net/if_arp.h explicitly for consistency.
1 parent 0d07d08 commit 27c2190

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ether.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
#endif
2222

2323
/* In order to avoid too many unneeded include files, we forge some types */
24-
#if defined(BSD)
24+
#if defined(__FreeBSD__)
25+
# include <net/if_arp.h>
26+
#elif defined(BSD)
2527
struct arphdr { int ignore; };
2628
#endif
2729
#if !defined(_AIX)

0 commit comments

Comments
 (0)