Skip to content

Commit d740e2a

Browse files
committed
Fix build error on macosx due to Linux-ism
1 parent c95ea56 commit d740e2a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/format_linux_common.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ struct sockaddr_ll {
9696

9797
#endif /* HAVE_NETPACKET_PACKET_H */
9898

99+
/* This identifier is Linux-only, so define it here for portability */
100+
#ifndef ETH_P_TEB
101+
#define ETH_P_TEB 0x6558
102+
#endif
103+
99104
struct tpacket_stats {
100105
unsigned int tp_packets;
101106
unsigned int tp_drops;

0 commit comments

Comments
 (0)