From 20223515248e8771fa2d5faed48092eea61a6400 Mon Sep 17 00:00:00 2001 From: Lennart Grahl Date: Tue, 21 Mar 2017 20:43:56 +0100 Subject: [PATCH] Define __FAVOR_BSD where needed (include/udp.h) for Ubuntu 12.04 support --- usrsctplib/netinet/sctputil.c | 3 +++ usrsctplib/user_recv_thread.c | 3 +++ 2 files changed, 6 insertions(+) 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