Commit 3f9d14bb authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Fix directory.c on WinCE (which has neither DT_DIR nor S_ISDIR)

parent 7aca6e90
...@@ -465,11 +465,13 @@ static int ReadDir( playlist_t *p_playlist, const char *psz_name, ...@@ -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 ) && S_ISDIR(stat_data.st_mode) && i_mode != MODE_COLLAPSE )
#elif defined( DT_DIR ) #elif defined( DT_DIR )
if( ( p_dir_content->d_type & DT_DIR ) && i_mode != MODE_COLLAPSE ) if( ( p_dir_content->d_type & DT_DIR ) && i_mode != MODE_COLLAPSE )
#else
if( 0 )
#endif #endif
{ {
#if defined( S_ISLNK ) #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 * impossible to fix while keeping some kind of portable code, and maybe even
* in a non-portable way. * in a non-portable way.
*/ */
......
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