From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 106368 invoked by alias); 3 Jun 2019 08:40:27 -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 106352 invoked by uid 9078); 3 Jun 2019 08:40:27 -0000 Date: Mon, 03 Jun 2019 08:40:00 -0000 Message-ID: <20190603084027.106351.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] Fix issues with X-Act-Checkin: newlib-cygwin X-Git-Author: Sebastian Huber X-Git-Refname: refs/heads/master X-Git-Oldrev: 86809750bb4e6b0cda331ae9919f3d0e9bd53586 X-Git-Newrev: f5a5a23ea8c73f9d2a2fdcb471883989f23f9e4b X-SW-Source: 2019-q2/txt/msg00017.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=f5a5a23ea8c73f9d2a2fdcb471883989f23f9e4b commit f5a5a23ea8c73f9d2a2fdcb471883989f23f9e4b Author: Sebastian Huber Date: Thu May 16 14:40:34 2019 +0200 Fix issues with A commit from 2016 tried to address this GCC provided issue #if (defined (__FreeBSD__) && (__FreeBSD__ >= 5)) \ || defined(__DragonFly__) \ || defined(__FreeBSD_kernel__) /* __size_t is a typedef on FreeBSD 5, must not trash it. */ #elif defined (__VMS__) /* __size_t is also a typedef on VMS. */ #else #define __size_t #endif with an include of before in . Is is not robust enough. Do the include of in directly and request only the necessary types. Signed-off-by: Sebastian Huber Diff: --- newlib/libc/include/sys/_types.h | 6 +++--- newlib/libc/include/sys/types.h | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/newlib/libc/include/sys/_types.h b/newlib/libc/include/sys/_types.h index 0ed56ed..017a0aa 100644 --- a/newlib/libc/include/sys/_types.h +++ b/newlib/libc/include/sys/_types.h @@ -19,6 +19,9 @@ #ifndef _SYS__TYPES_H #define _SYS__TYPES_H +#define __need_size_t +#define __need_wint_t +#include #include #include #include @@ -154,9 +157,6 @@ typedef long _ssize_t; typedef _ssize_t __ssize_t; -#define __need_wint_t -#include - #ifndef __machine_mbstate_t_defined /* Conversion state information. */ typedef struct diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h index 19e3de6..4613ac8 100644 --- a/newlib/libc/include/sys/types.h +++ b/newlib/libc/include/sys/types.h @@ -42,8 +42,6 @@ typedef __intptr_t register_t; #ifndef __need_inttypes #define _SYS_TYPES_H -/* must be before for __size_t considerations */ -#include #include #include