lib/nfs/Connection: use winsock2.h instead of poll.h on Windows

This commit is contained in:
Max Kellermann 2018-02-24 22:02:42 +01:00
parent 3f3e0739c4
commit 2141fdf06e

View File

@ -31,7 +31,11 @@ extern "C" {
#include <utility>
#ifdef _WIN32
#include <winsock2.h>
#else
#include <poll.h> /* for POLLIN, POLLOUT */
#endif
static constexpr std::chrono::steady_clock::duration NFS_MOUNT_TIMEOUT =
std::chrono::minutes(1);