diff options
Diffstat (limited to 'src/io')
-rw-r--r-- | src/io/lock.cpp | 3 | ||||
-rw-r--r-- | src/io/write.cpp | 2 | ||||
-rw-r--r-- | src/io/write.hpp | 1 |
3 files changed, 5 insertions, 1 deletions
diff --git a/src/io/lock.cpp b/src/io/lock.cpp index 1342915..3f83611 100644 --- a/src/io/lock.cpp +++ b/src/io/lock.cpp @@ -21,6 +21,9 @@ #include <fcntl.h> #include <unistd.h> +#include <cerrno> +#include <cstdlib> + #include "../strings/zstring.hpp" #include "cxxstdio.hpp" diff --git a/src/io/write.cpp b/src/io/write.cpp index 5993a69..817e6c0 100644 --- a/src/io/write.cpp +++ b/src/io/write.cpp @@ -23,6 +23,8 @@ #include <fcntl.h> #include <unistd.h> +#include <cstdlib> + #include "../strings/xstring.hpp" #include "../poison.hpp" diff --git a/src/io/write.hpp b/src/io/write.hpp index 870ebb5..39d3dee 100644 --- a/src/io/write.hpp +++ b/src/io/write.hpp @@ -34,7 +34,6 @@ namespace io private: FD fd; bool lb; - struct {} _unused; unsigned short buflen; char buf[4096]; public: |