Commit b6d069b3 authored by Rafaël Carré's avatar Rafaël Carré

PATH_MAX is defined in limits.h

parent ac3ca410
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <vlc_strings.h> #include <vlc_strings.h>
#include "../playlist/playlist_internal.h" #include "../playlist/playlist_internal.h"
#include <errno.h> #include <errno.h>
#include <limits.h> /* PATH_MAX */
#ifdef HAVE_SYS_STAT_H #ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> # include <sys/stat.h>
...@@ -222,10 +223,6 @@ int input_ArtFind( playlist_t *p_playlist, input_item_t *p_item ) ...@@ -222,10 +223,6 @@ int input_ArtFind( playlist_t *p_playlist, input_item_t *p_item )
return i_ret; return i_ret;
} }
#ifndef PATH_MAX
# define PATH_MAX 250
#endif
static void ArtCacheCreateDir( const char *psz_dir ) static void ArtCacheCreateDir( const char *psz_dir )
{ {
char newdir[strlen( psz_dir ) + 1]; char newdir[strlen( psz_dir ) + 1];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment