From 689fbc51d33a76a0d2a5fb050ff7ea18ddcb871a Mon Sep 17 00:00:00 2001 From: Kevin Schoedel <67607049+kpschoedel@users.noreply.github.com> Date: Wed, 8 Dec 2021 16:49:53 -0500 Subject: [PATCH] Fix missing __APPLE_USE_RFC_3542 (#12753) * Fix missing __APPLE_USE_RFC_3542 #### Problem In splitting `UDPEndPoint.cpp` by implementation, the definition of `__APPLE_USE_RFC_3542` was lost, which caused `IPV6_PKTINFO` to not be defined and corresponding parts of `UDPEndPoint` not to be built. #### Change overview Add `#define __APPLE_USE_RFC_3542` to the top of `UDPEndPointImplSockets.cpp`, as it had been in `UDPEndPoint.cpp`. #### Testing CI * Update src/inet/UDPEndPointImplSockets.cpp Co-authored-by: Tennessee Carmel-Veilleux * Fix trailing whitespace Co-authored-by: Andrei Litvin Co-authored-by: Tennessee Carmel-Veilleux --- src/inet/UDPEndPointImplSockets.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/inet/UDPEndPointImplSockets.cpp b/src/inet/UDPEndPointImplSockets.cpp index ffae9f1f533d34..23428fa49c4a63 100644 --- a/src/inet/UDPEndPointImplSockets.cpp +++ b/src/inet/UDPEndPointImplSockets.cpp @@ -21,6 +21,9 @@ * This file implements Inet::UDPEndPoint using sockets. */ +// Required to properly support underlying RFC3542-related fields to IPV6_PKTINFO +// on Darwin. +#define __APPLE_USE_RFC_3542 #include #include