[vlc-devel] [PATCH] NAME_MAX is undefined on SunOS

Francois Cartegnie fcvlcdev at free.fr
Tue May 18 14:33:38 CEST 2010


---
 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
-- 
1.6.3




More information about the vlc-devel mailing list