From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 113930 invoked by alias); 24 Aug 2018 13:12:12 -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 113603 invoked by uid 10080); 24 Aug 2018 13:12:12 -0000 Date: Fri, 24 Aug 2018 13:12:00 -0000 Message-ID: <20180824131212.113597.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Sebastian Huber To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] RTEMS: Add __BSD_VISIBLE in X-Act-Checkin: newlib-cygwin X-Git-Author: Sebastian Huber X-Git-Refname: refs/heads/master X-Git-Oldrev: 890c86d633b6bf5583326d01c702eb0242b7b8a2 X-Git-Newrev: 9bbf89dd115fa160a4a28c94635fa9e9ed88831b X-SW-Source: 2018-q3/txt/msg00092.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=9bbf89dd115fa160a4a28c94635fa9e9ed88831b commit 9bbf89dd115fa160a4a28c94635fa9e9ed88831b Author: Sebastian Huber Date: Wed Aug 8 11:04:10 2018 +0200 RTEMS: Add __BSD_VISIBLE in The __XSI_VISIBLE is not enabled by default in Newlib. This is an incompatiblity between FreeBSD and glibc. Signed-off-by: Sebastian Huber Diff: --- newlib/libc/sys/rtems/include/sys/_termios.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/newlib/libc/sys/rtems/include/sys/_termios.h b/newlib/libc/sys/rtems/include/sys/_termios.h index 7c3bf53..38b52bf 100644 --- a/newlib/libc/sys/rtems/include/sys/_termios.h +++ b/newlib/libc/sys/rtems/include/sys/_termios.h @@ -93,7 +93,7 @@ #define ICRNL 0x00000100 /* map CR to NL (ala CRMOD) */ #define IXON 0x00000200 /* enable output flow control */ #define IXOFF 0x00000400 /* enable input flow control */ -#if __XSI_VISIBLE || __POSIX_VISIBLE >= 200809 +#if __BSD_VISIBLE || __XSI_VISIBLE || __POSIX_VISIBLE >= 200809 #define IXANY 0x00000800 /* any char will restart after stop */ #endif #if __BSD_VISIBLE @@ -104,7 +104,7 @@ * Output flags - software output processing */ #define OPOST 0x00000001 /* enable following output processing */ -#if __XSI_VISIBLE +#if __BSD_VISIBLE || __XSI_VISIBLE #define ONLCR 0x00000002 /* map NL to CR-NL (ala CRMOD) */ #endif #if __BSD_VISIBLE @@ -113,7 +113,7 @@ #define TAB3 0x00000004 /* expand tabs to spaces */ #define ONOEOT 0x00000008 /* discard EOT's (^D) on output) */ #endif -#if __XSI_VISIBLE +#if __BSD_VISIBLE || __XSI_VISIBLE #define OCRNL 0x00000010 /* map CR to NL on output */ #define ONOCR 0x00000020 /* no CR output at column 0 */ #define ONLRET 0x00000040 /* NL performs CR function */