Skip to content

Commit 1397853

Browse files
committed
net_ip: define WSA_FLAG_NO_HANDLE_INHERIT if missing when building for Windows
1 parent 39f3a86 commit 1397853

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/engine/qcommon/net_ip.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ using sa_family_t = unsigned short;
6464

6565
# define socketError WSAGetLastError()
6666

67+
# if !defined(WSA_FLAG_NO_HANDLE_INHERIT)
68+
#define WSA_FLAG_NO_HANDLE_INHERIT 0x80
69+
# endif
70+
6771
namespace net {
6872
namespace errc {
6973
constexpr auto resource_unavailable_try_again = WSAEWOULDBLOCK;

0 commit comments

Comments
 (0)