[PATCH] Add missing includes.

Andrew Stubbs ams@codesourcery.com
Mon Mar 25 15:34:00 GMT 2019


These missing includes were causing build warnings, but also a real bug in
which the "size" parameter to "write" was being passed in 32-bit, whereas it
ought to be 64-bit.  This led to intermittent bad behaviour.
---

Built and regtested for AMD GCN.

OK?

-- 
Andrew Stubbs
Mentor Graphics / CodeSourcery

 newlib/libc/machine/amdgcn/abort.c    | 2 +-
 newlib/libc/machine/amdgcn/getreent.c | 1 +
 newlib/libc/sys/amdgcn/fstat.c        | 2 ++
 3 files changed, 4 insertions(+), 1 deletion(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-missing-includes.patch
Type: text/x-patch
Size: 1036 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20190325/95ae5c5f/attachment.bin>


More information about the Newlib mailing list