PATH_MAX is defined in limits.h
authorRafaël Carré <funman@videolan.org>
Thu, 27 Sep 2007 13:45:40 +0000 (13:45 +0000)
committerRafaël Carré <funman@videolan.org>
Thu, 27 Sep 2007 13:45:40 +0000 (13:45 +0000)
src/input/meta.c

index 7c7815f..6b2de37 100644 (file)
@@ -31,6 +31,7 @@
 #include <vlc_strings.h>
 #include "../playlist/playlist_internal.h"
 #include <errno.h>
+#include <limits.h>                                             /* PATH_MAX */
 
 #ifdef HAVE_SYS_STAT_H
 #   include <sys/stat.h>
@@ -222,10 +223,6 @@ int input_ArtFind( playlist_t *p_playlist, input_item_t *p_item )
     return i_ret;
 }
 
-#ifndef PATH_MAX
-#   define PATH_MAX 250
-#endif
-
 static void ArtCacheCreateDir( const char *psz_dir )
 {
     char newdir[strlen( psz_dir ) + 1];