S_ISLNK() is in POSIX

This commit is contained in:
Pierre Pronchery 2014-08-10 01:31:29 +02:00
parent 335684c3d5
commit 65ad7db27f

View File

@ -628,7 +628,7 @@ static char const * _long_date(time_t date)
static char _file_mode_letter(mode_t mode) static char _file_mode_letter(mode_t mode)
{ {
if(S_ISLNK(mode)) /* FIXME not in POSIX? */ if(S_ISLNK(mode))
return '@'; return '@';
if(S_ISDIR(mode)) if(S_ISDIR(mode))
return '/'; return '/';