diff --git a/usrsctplib/netinet/sctputil.c b/usrsctplib/netinet/sctputil.c index 684ed3aef..e1c25e525 100755 --- a/usrsctplib/netinet/sctputil.c +++ b/usrsctplib/netinet/sctputil.c @@ -53,6 +53,9 @@ __FBSDID("$FreeBSD: head/sys/netinet/sctputil.c 310590 2016-12-26 11:06:41Z tuex #include #include #include +#if defined(__Userspace_os_Linux) +#define __FAVOR_BSD /* (on Ubuntu at least) enables UDP header field names like BSD in RFC 768 */ +#endif #if defined(__Userspace__) #include #if !defined(__Userspace_os_Windows) diff --git a/usrsctplib/user_recv_thread.c b/usrsctplib/user_recv_thread.c index 88869de33..04d62f682 100755 --- a/usrsctplib/user_recv_thread.c +++ b/usrsctplib/user_recv_thread.c @@ -57,6 +57,9 @@ #endif #endif #endif +#if defined(__Userspace_os_Linux) +#define __FAVOR_BSD /* (on Ubuntu at least) enables UDP header field names like BSD in RFC 768 */ +#endif #if defined(__Userspace__) #ifdef INET6 #include