From: Eshan dhawan <eshandhawan51@gmail.com>
To: newlib@sourceware.org
Subject: [PATCH] Enabled _CS* defines for RTEMS
Date: Sat, 22 Aug 2020 00:57:35 +0530 [thread overview]
Message-ID: <20200821192735.23958-1-eshandhawan51@gmail.com> (raw)
Signed-off-by: Eshan dhawan <eshandhawan51@gmail.com>
---
newlib/libc/include/sys/unistd.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h
index 5386bd49d..ca92f8b87 100644
--- a/newlib/libc/include/sys/unistd.h
+++ b/newlib/libc/include/sys/unistd.h
@@ -533,7 +533,8 @@ int unlinkat (int, const char *, int);
* confstr values per IEEE Std 1003.1, 2004 Edition
*/
-#ifdef __CYGWIN__ /* Only defined on Cygwin for now. */
+/* Only defined on Cygwin and RTEMS for now. */
+#if defined (__CYGWIN__) || (__rtems__)
#define _CS_PATH 0
#define _CS_POSIX_V7_ILP32_OFF32_CFLAGS 1
#define _CS_POSIX_V6_ILP32_OFF32_CFLAGS _CS_POSIX_V7_ILP32_OFF32_CFLAGS
--
2.17.1
next reply other threads:[~2020-08-21 19:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-21 19:27 Eshan dhawan [this message]
2020-08-24 9:59 ` Corinna Vinschen
2020-08-24 11:38 ` Eshan Dhawan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200821192735.23958-1-eshandhawan51@gmail.com \
--to=eshandhawan51@gmail.com \
--cc=newlib@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).