Skip to content

Commit

Permalink
osdSockUnsentCount.c check for existance of SIO_TCP_INFO
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Oct 25, 2019
1 parent fc04d12 commit f0d9691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/libcom/src/osi/os/WIN32/osdSockUnsentCount.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See https://docs.microsoft.com/en-us/windows/win32/api/mstcpip/ns-mstcpip-tcp_info_v0
*/
int epicsSocketUnsentCount(SOCKET sock) {
#if defined (_WIN32) && WINVER >= _WIN32_WINNT_WIN10
#if defined (_WIN32) && defined(SIO_TCP_INFO)
/* Windows 10 Version 1703 / Server 2016 */
DWORD infoVersion = 0, bytesReturned;
TCP_INFO_v0 tcpInfo;
Expand Down

0 comments on commit f0d9691

Please sign in to comment.