public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Enabled _CS* defines for RTEMS
@ 2020-08-21 19:27 Eshan dhawan
  2020-08-24  9:59 ` Corinna Vinschen
  0 siblings, 1 reply; 3+ messages in thread
From: Eshan dhawan @ 2020-08-21 19:27 UTC (permalink / raw)
  To: newlib

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Enabled _CS* defines for RTEMS
  2020-08-21 19:27 [PATCH] Enabled _CS* defines for RTEMS Eshan dhawan
@ 2020-08-24  9:59 ` Corinna Vinschen
  2020-08-24 11:38   ` Eshan Dhawan
  0 siblings, 1 reply; 3+ messages in thread
From: Corinna Vinschen @ 2020-08-24  9:59 UTC (permalink / raw)
  To: newlib

On Aug 22 00:57, Eshan dhawan via Newlib wrote:
> 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__)

Shouldn't this be a `defined (__rtems__)'?


Thanks,
Corinna


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Enabled _CS* defines for RTEMS
  2020-08-24  9:59 ` Corinna Vinschen
@ 2020-08-24 11:38   ` Eshan Dhawan
  0 siblings, 0 replies; 3+ messages in thread
From: Eshan Dhawan @ 2020-08-24 11:38 UTC (permalink / raw)
  To: newlib; +Cc: Corinna Vinschen


> On 24-Aug-2020, at 3:30 PM, Corinna Vinschen via Newlib <newlib@sourceware.org> wrote:
> 
> On Aug 22 00:57, Eshan dhawan via Newlib wrote:
>> 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__)
> 
> Shouldn't this be a `defined (__rtems__)'?
Apologies sent the wrong patch 
I will send the v2 today :) 
> 
> 
> Thanks,
> Corinna
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-24 11:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-21 19:27 [PATCH] Enabled _CS* defines for RTEMS Eshan dhawan
2020-08-24  9:59 ` Corinna Vinschen
2020-08-24 11:38   ` Eshan Dhawan

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).