[v1] rtems/../sys/dirent.h: Enable DT_ symbols for POSIX >= 202405L

Message ID 1724102941-8977-1-git-send-email-joel@rtems.org
State New
Headers
Series [v1] rtems/../sys/dirent.h: Enable DT_ symbols for POSIX >= 202405L |

Commit Message

Joel Sherrill Aug. 19, 2024, 9:29 p.m. UTC
  Issue 8 added these symbols which which previously BSD extensions.
---
 newlib/libc/sys/rtems/include/sys/dirent.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Torbjorn SVENSSON Aug. 20, 2024, 6:01 a.m. UTC | #1
Hi,

On 2024-08-19 23:29, Joel Sherrill wrote:
> Issue 8 added these symbols which which previously BSD extensions.

The above sentence does not make sense. "which which"? :)
Other than that, no comments.

Kind regards,
Torbjörn

> ---
>   newlib/libc/sys/rtems/include/sys/dirent.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/newlib/libc/sys/rtems/include/sys/dirent.h b/newlib/libc/sys/rtems/include/sys/dirent.h
> index 6f8ff42..3e41635 100644
> --- a/newlib/libc/sys/rtems/include/sys/dirent.h
> +++ b/newlib/libc/sys/rtems/include/sys/dirent.h
> @@ -99,7 +99,7 @@ struct dirent {
>   
>   #define	__dirfd(dp)	((dp)->dd_fd)
>   
> -#if __BSD_VISIBLE
> +#if __BSD_VISIBLE || __POSIX_VISIBLE >= 202405
>   
>   /*
>    * File types
  

Patch

diff --git a/newlib/libc/sys/rtems/include/sys/dirent.h b/newlib/libc/sys/rtems/include/sys/dirent.h
index 6f8ff42..3e41635 100644
--- a/newlib/libc/sys/rtems/include/sys/dirent.h
+++ b/newlib/libc/sys/rtems/include/sys/dirent.h
@@ -99,7 +99,7 @@  struct dirent {
 
 #define	__dirfd(dp)	((dp)->dd_fd)
 
-#if __BSD_VISIBLE
+#if __BSD_VISIBLE || __POSIX_VISIBLE >= 202405
 
 /*
  * File types