diff options
Diffstat (limited to 'src/io/write.hpp')
-rw-r--r-- | src/io/write.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/io/write.hpp b/src/io/write.hpp index 7134015..a52c176 100644 --- a/src/io/write.hpp +++ b/src/io/write.hpp @@ -25,19 +25,21 @@ # include "../strings/fwd.hpp" +# include "fd.hpp" + namespace io { class WriteFile { private: - int fd; + FD fd; bool lb; struct {} _unused; unsigned short buflen; char buf[4096]; public: explicit - WriteFile(int fd, bool linebuffered=false); + WriteFile(FD fd, bool linebuffered=false); explicit WriteFile(ZString name, bool linebuffered=false); WriteFile(WriteFile&&) = delete; |