]> git.sesse.net Git - vlc/commitdiff
* Fix directory.c on WinCE (which has neither DT_DIR nor S_ISDIR)
authorDerk-Jan Hartman <hartman@videolan.org>
Tue, 13 Dec 2005 20:16:47 +0000 (20:16 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Tue, 13 Dec 2005 20:16:47 +0000 (20:16 +0000)
modules/access/directory.c

index b69c2bbd00d15c001d52def91eedc39aca07d7ec..ac6debe37171c919bca0fc9e264c7aa40dea7bd7 100644 (file)
@@ -465,11 +465,13 @@ static int ReadDir( playlist_t *p_playlist, const char *psz_name,
              && S_ISDIR(stat_data.st_mode) && i_mode != MODE_COLLAPSE )
 #elif defined( DT_DIR )
             if( ( p_dir_content->d_type & DT_DIR ) && i_mode != MODE_COLLAPSE )
+#else
+            if( 0 )
 #endif
             {
 #if defined( S_ISLNK )
 /*
- * FIXME: there is a ToCToU race condition here; but it is rather tricky^W^W
+ * FIXME: there is a ToCToU race condition here; but it is rather tricky
  * impossible to fix while keeping some kind of portable code, and maybe even
  * in a non-portable way.
  */