From 31794ac376346b55951b0ec7ae5a155ca2e38b31 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 24 Feb 2018 22:03:38 +0100 Subject: [PATCH] lib/nfs/FileReader: move sys/stat.h to header because "struct stat" may be macro It indeed is a macro on Windows. --- src/lib/nfs/FileReader.cxx | 1 - src/lib/nfs/FileReader.hxx | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/nfs/FileReader.cxx b/src/lib/nfs/FileReader.cxx index 21eadc950..4bf7a43da 100644 --- a/src/lib/nfs/FileReader.cxx +++ b/src/lib/nfs/FileReader.cxx @@ -31,7 +31,6 @@ #include #include #include -#include NfsFileReader::NfsFileReader() :DeferredMonitor(io_thread_get()), state(State::INITIAL) diff --git a/src/lib/nfs/FileReader.hxx b/src/lib/nfs/FileReader.hxx index 911e62053..fdbd039e3 100644 --- a/src/lib/nfs/FileReader.hxx +++ b/src/lib/nfs/FileReader.hxx @@ -31,6 +31,7 @@ #include #include +#include struct nfsfh; class NfsConnection;