From e0fbd9f12a0688d1a32ec564f60af47caca8da5d Mon Sep 17 00:00:00 2001 From: Samaresh Kumar Singh Date: Thu, 16 Apr 2026 19:22:06 -0500 Subject: [PATCH] example: define __FAVOR_BSD on Linux for portable TCP/UDP header field names --- example/netinet_compat.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/example/netinet_compat.h b/example/netinet_compat.h index f6afb6c..cc1d886 100644 --- a/example/netinet_compat.h +++ b/example/netinet_compat.h @@ -41,6 +41,9 @@ typedef struct ether_header EthHdr; #define IPPROTO_MH 135 #endif +#if defined(__linux__) +#define __FAVOR_BSD +#endif #include typedef struct tcphdr TcpHdr;