diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-04-14 14:27:59 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-04-19 20:09:35 -0700 |
commit | 147c3e9c891c12dbfd39b65ee0f5baddf5f81b14 (patch) | |
tree | 8b8f6c86691e13c522e1e9237f7587a5a147cd52 /src/io | |
parent | 7f16d356995d4e9c29105f98d502a7e51a4c775d (diff) | |
download | tmwa-147c3e9c891c12dbfd39b65ee0f5baddf5f81b14.tar.gz tmwa-147c3e9c891c12dbfd39b65ee0f5baddf5f81b14.tar.bz2 tmwa-147c3e9c891c12dbfd39b65ee0f5baddf5f81b14.tar.xz tmwa-147c3e9c891c12dbfd39b65ee0f5baddf5f81b14.zip |
Make clang and libc++ happy
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: |