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.
This commit is contained in:
Andrew Stubbs 2019-03-25 15:33:53 +00:00 committed by Corinna Vinschen
parent 23bb2f6608
commit e8b23909e4
3 changed files with 4 additions and 1 deletions

View File

@ -13,7 +13,7 @@
* they apply.
*/
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include "exit-value.h"

View File

@ -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 {

View File

@ -13,6 +13,8 @@
* they apply.
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>