[vlc-devel] [PATCH] filesystem: use a sane default for NAME_MAX
Rémi Denis-Courmont
remi at remlab.net
Mon Mar 10 16:54:14 CET 2014
Le lundi 10 mars 2014, 11:06:40 Sean McGovern a écrit :
> ---
> src/posix/filesystem.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/src/posix/filesystem.c b/src/posix/filesystem.c
> index 326af9e..a1bc646 100644
> --- a/src/posix/filesystem.c
> +++ b/src/posix/filesystem.c
> @@ -29,6 +29,9 @@
>
> #include <stdio.h>
> #include <limits.h> /* NAME_MAX */
> +#ifndef NAME_MAX
> +# define NAME_MAX 255
> +#endif
I don't think 255 is very sane, but more importantly, this does not seem to be
needed anywhere in that file...
> #include <errno.h>
>
> #include <sys/types.h>
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list