summaryrefslogtreecommitdiff
path: root/sockcompat.h
AgeCommit message (Collapse)Author
2022-10-26Update for mingw cross compilebit0fun
- Used lowercase for Mstcpip.h as mingw will not find the file otherwise
2022-09-03Use a windows specific keepalive function. (#1104)Michael Grunder
Use a windows specific keepalive function. While it is possible to toggle `TCP_KEEPALIVE` in windows via setsockopt, you have to use `WSAIoctl` to set the interval. Since `WSAIoctl` can actually do all of this in one call (toggle the option, and set the corresponding interval), just use that in Windows and avoid the call to `setsockopt` alltogether. Fixes: #1100
2020-07-20Move include to sockcompat.h to maintain style (#850)Michael Grunder
See #848
2020-06-07sdsrange overflow fix (#830)Michael Grunder
Fix overflow bug in `sdsrange`
2019-08-09MinGW fix: Use _MSC_VER instead of _WIN32 where appropriateMarcus Geelnard
Use _MSC_VER (instead of _WIN32) for things that are specific for Visual Studio. Also remove #include <winsock2.h> from hiredis.h, as it leaks too many symbols and defines into the global namespace, which is undesirable for a public interface header. Anyone who uses the the affected parts of the hiredis API needs to include the appropriate headers anyway in order to declare struct timeval variables.
2019-04-13Fix Compile Error On Windows (Visual Studio)jinjiazhang
2019-04-01Port network layer to Winsockm
With this change, Hiredis builds with MinGW and runs on Windows.