Skip to content

Commit

Permalink
Disable recvmsg on MacOS for now as a test
Browse files Browse the repository at this point in the history
  • Loading branch information
zpostfacto committed Sep 9, 2024
1 parent b813c78 commit ea3a62e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/public/tier0/platform_sockets.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ typedef char SteamNetworkingErrMsg[ 1024 ];
return errno;
}

#define PlatformSupportsRecvMsg() true

#ifdef __APPLE__
#define USE_POLL
Expand All @@ -119,6 +118,11 @@ typedef char SteamNetworkingErrMsg[ 1024 ];
// it should work, I would appreciate the help.
#define PlatformSupportsRecvTOS() false

// Some weird problem with tests on MacOS. We only need recvmsg
// to receive the TOS, which doesn't work. So let's just turn it off
// and see it fixes the tests.
#define PlatformSupportsRecvMsg() false

#else
#define USE_EPOLL
#include <sys/epoll.h>
Expand All @@ -145,6 +149,8 @@ typedef char SteamNetworkingErrMsg[ 1024 ];
// FIXME - should we try to use eventfd() here
// instead of a socket pair?

#define PlatformSupportsRecvMsg() true

#endif
#else
#error "How do?"
Expand Down

0 comments on commit ea3a62e

Please sign in to comment.