Fix powerpc64 cross build.

This commit is contained in:
Markus F.X.J. Oberhumer
2018-01-19 14:33:31 +01:00
parent 16bb7ab841
commit 05e44b9644
3 changed files with 9 additions and 3 deletions
+2
View File
@@ -140,6 +140,7 @@ int FileBase::read(void *buf, int len)
{
if (!isOpen() || len < 0)
throwIOException("bad read");
mem_size_assert(1, len); // sanity check
errno = 0;
long l = acc_safe_hread(_fd, buf, len);
if (errno)
@@ -161,6 +162,7 @@ void FileBase::write(const void *buf, int len)
{
if (!isOpen() || len < 0)
throwIOException("bad write");
mem_size_assert(1, len); // sanity check
errno = 0;
long l = acc_safe_hwrite(_fd, buf, len);
if (l != len)