public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] RTEMS: Harmonize MAXNAMLEN and NAME_MAX
@ 2017-01-25 11:37 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2017-01-25 11:37 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=e692cfc121c76a14919752d2ac5e0f9f3e95d5bb
commit e692cfc121c76a14919752d2ac5e0f9f3e95d5bb
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date: Wed Jan 25 07:07:12 2017 +0100
RTEMS: Harmonize MAXNAMLEN and NAME_MAX
Override MAXNAMLEN definition in <dirent.h> and make sure it equals
NAME_MAX.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diff:
---
newlib/libc/sys/rtems/include/sys/dirent.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/newlib/libc/sys/rtems/include/sys/dirent.h b/newlib/libc/sys/rtems/include/sys/dirent.h
index 5a3a54d..47a0c8f 100644
--- a/newlib/libc/sys/rtems/include/sys/dirent.h
+++ b/newlib/libc/sys/rtems/include/sys/dirent.h
@@ -50,6 +50,10 @@ struct dirent {
char d_name[NAME_MAX + 1];
};
+#if __BSD_VISIBLE
+#define MAXNAMLEN NAME_MAX
+#endif
+
int scandir ( const char *dirname,
struct dirent *** namelist,
int (*select)(const struct dirent *),
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-01-25 11:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-25 11:37 [newlib-cygwin] RTEMS: Harmonize MAXNAMLEN and NAME_MAX Corinna Vinschen
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).