mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-10 01:24:41 -06:00
Add missing include
This commit is contained in:
parent
dbe8c94dd4
commit
56416314f9
@ -1,11 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#if BOOST_OS_WINDOWS
|
||||
|
||||
#include <boost/asio/detail/socket_option.hpp>
|
||||
#include <winsock2.h> // For SOL_SOCKET, SO_RCVTIMEO
|
||||
|
||||
using ReceiveTimeoutSocketOption = boost::asio::detail::socket_option::integer<SOL_SOCKET, SO_RCVTIMEO>;
|
||||
|
||||
#elif BOOST_OS_LINUX || BOOST_OS_MACOS
|
||||
|
||||
#include <sys/time.h>
|
||||
|
||||
class ReceiveTimeoutSocketOption {
|
||||
timeval m_data; // POSIX only allows timeeval to be parameter to option SO_RCVTIMEO
|
||||
public:
|
||||
@ -36,4 +41,4 @@ public:
|
||||
return sizeof(timeval);
|
||||
}
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user