From 68c441575d8fd8c7952e7ea970ef4e70c941e703 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Tue, 1 Feb 2022 12:17:09 -0800 Subject: [PATCH] Linux: Fixes for older build environments Should resolve the new building issues from #1423 --- Source/Tests/LinuxSyscalls/x32/Socket.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Source/Tests/LinuxSyscalls/x32/Socket.cpp b/Source/Tests/LinuxSyscalls/x32/Socket.cpp index e2aa2e63c..121acedd6 100644 --- a/Source/Tests/LinuxSyscalls/x32/Socket.cpp +++ b/Source/Tests/LinuxSyscalls/x32/Socket.cpp @@ -30,6 +30,21 @@ namespace FEXCore::Core { namespace FEX::HLE::x32 { // Some sockopt defines for older build environments +#ifndef SO_RCVTIMEO_OLD +#define SO_RCVTIMEO_OLD 20 +#endif +#ifndef SO_SNDTIMEO_OLD +#define SO_SNDTIMEO_OLD 21 +#endif +#ifndef SO_TIMESTAMP_OLD +#define SO_TIMESTAMP_OLD 29 +#endif +#ifndef SO_TIMESTAMPNS_OLD +#define SO_TIMESTAMPNS_OLD 35 +#endif +#ifndef SO_TIMESTAMPING_OLD +#define SO_TIMESTAMPING_OLD 37 +#endif #ifndef SO_TXTIME #define SO_TXTIME 61 #endif