From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 59868 invoked by alias); 25 Mar 2019 15:44:45 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 59712 invoked by uid 9078); 25 Mar 2019 15:44:41 -0000 Date: Mon, 25 Mar 2019 15:44:00 -0000 Message-ID: <20190325154441.59711.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Add missing includes. X-Act-Checkin: newlib-cygwin X-Git-Author: Andrew Stubbs X-Git-Refname: refs/heads/master X-Git-Oldrev: 23bb2f660807bbc7321a143fa35ce659d79ba245 X-Git-Newrev: e8b23909e4f458b923595872719523b2293bd74e X-SW-Source: 2019-q1/txt/msg00040.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=e8b23909e4f458b923595872719523b2293bd74e commit e8b23909e4f458b923595872719523b2293bd74e Author: Andrew Stubbs Date: Mon Mar 25 15:33:53 2019 +0000 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. Diff: --- 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(-) diff --git a/newlib/libc/machine/amdgcn/abort.c b/newlib/libc/machine/amdgcn/abort.c index ccbca72..ca9a0a3 100644 --- a/newlib/libc/machine/amdgcn/abort.c +++ b/newlib/libc/machine/amdgcn/abort.c @@ -13,7 +13,7 @@ * they apply. */ -#include +#include #include #include "exit-value.h" diff --git a/newlib/libc/machine/amdgcn/getreent.c b/newlib/libc/machine/amdgcn/getreent.c index acf10a9..5a28aa4 100644 --- a/newlib/libc/machine/amdgcn/getreent.c +++ b/newlib/libc/machine/amdgcn/getreent.c @@ -3,6 +3,7 @@ #include #include #include +#include /* Copied from the HSA documentation. */ typedef struct hsa_signal_s { diff --git a/newlib/libc/sys/amdgcn/fstat.c b/newlib/libc/sys/amdgcn/fstat.c index b787158..2526967 100644 --- a/newlib/libc/sys/amdgcn/fstat.c +++ b/newlib/libc/sys/amdgcn/fstat.c @@ -13,6 +13,8 @@ * they apply. */ +#include +#include #include #include