diff options
author | Andrew Stubbs <ams@codesourcery.com> | 2019-03-25 18:33:53 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2019-03-25 18:44:10 +0300 |
commit | e8b23909e4f458b923595872719523b2293bd74e (patch) | |
tree | 75935de16127027fafb4ab2bcb35da84fc2e0ef2 /newlib/libc/machine | |
parent | 23bb2f660807bbc7321a143fa35ce659d79ba245 (diff) |
Add missing includes.
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.
Diffstat (limited to 'newlib/libc/machine')
-rw-r--r-- | newlib/libc/machine/amdgcn/abort.c | 2 | ||||
-rw-r--r-- | newlib/libc/machine/amdgcn/getreent.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/machine/amdgcn/abort.c b/newlib/libc/machine/amdgcn/abort.c index ccbca726a..ca9a0a33f 100644 --- a/newlib/libc/machine/amdgcn/abort.c +++ b/newlib/libc/machine/amdgcn/abort.c @@ -13,7 +13,7 @@ * they apply. */ -#include <stdlib.h> +#include <unistd.h> #include <signal.h> #include "exit-value.h" diff --git a/newlib/libc/machine/amdgcn/getreent.c b/newlib/libc/machine/amdgcn/getreent.c index acf10a97f..5a28aa406 100644 --- a/newlib/libc/machine/amdgcn/getreent.c +++ b/newlib/libc/machine/amdgcn/getreent.c @@ -3,6 +3,7 @@ #include <reent.h> #include <stdint.h> #include <stdlib.h> +#include <unistd.h> /* Copied from the HSA documentation. */ typedef struct hsa_signal_s { |