diff options
author | Max Kellermann <max@musicpd.org> | 2018-02-24 22:02:42 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-02-24 22:02:42 +0100 |
commit | 2141fdf06e17918898f016f38fc0c4c9d13b7dee (patch) | |
tree | ab11a2f343cb818a36dd5a7508cf72f46b2da892 /src/lib | |
parent | 3f3e0739c4df2454118ca5bd114525d031b28840 (diff) |
lib/nfs/Connection: use winsock2.h instead of poll.h on Windows
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/nfs/Connection.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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 <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); |