[vlc-commits] commit: NAME_MAX is undefined on SunOS (Francois Cartegnie )

git at videolan.org git at videolan.org
Tue May 25 20:28:17 CEST 2010


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue May 18 14:33:38 2010 +0200| [e29b6d9c2015afc2f5ea350d4fc91ef15e0fcffd] | committer: Rémi Denis-Courmont 

NAME_MAX is undefined on SunOS

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e29b6d9c2015afc2f5ea350d4fc91ef15e0fcffd
---

 src/text/filesystem.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/text/filesystem.c b/src/text/filesystem.c
index 31fddef..fb27c17 100644
--- a/src/text/filesystem.c
+++ b/src/text/filesystem.c
@@ -38,6 +38,9 @@
 
 #include <stdio.h>
 #include <limits.h> /* NAME_MAX */
+#if !defined(NAME_MAX) && defined(_POSIX_NAME_MAX)
+# define NAME_MAX _POSIX_NAME_MAX
+#endif
 #include <errno.h>
 #include <sys/types.h>
 #ifdef HAVE_DIRENT_H



More information about the vlc-commits mailing list