From 2141fdf06e17918898f016f38fc0c4c9d13b7dee Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 24 Feb 2018 22:02:42 +0100 Subject: lib/nfs/Connection: use winsock2.h instead of poll.h on Windows --- src/lib/nfs/Connection.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/nfs/Connection.cxx b/src/lib/nfs/Connection.cxx index b417f2fab..f9792f41b 100644 --- a/src/lib/nfs/Connection.cxx +++ b/src/lib/nfs/Connection.cxx @@ -31,7 +31,11 @@ extern "C" { #include +#ifdef _WIN32 +#include +#else #include /* for POLLIN, POLLOUT */ +#endif static constexpr std::chrono::steady_clock::duration NFS_MOUNT_TIMEOUT = std::chrono::minutes(1); -- cgit v1.2.3