summaryrefslogtreecommitdiff
path: root/src/Fl_File_Icon.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_File_Icon.cxx')
-rw-r--r--src/Fl_File_Icon.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Fl_File_Icon.cxx b/src/Fl_File_Icon.cxx
index 08832a7f3..a4119c922 100644
--- a/src/Fl_File_Icon.cxx
+++ b/src/Fl_File_Icon.cxx
@@ -208,18 +208,18 @@ Fl_File_Icon::find(const char *filename,// I - Name of file */
{
if (S_ISDIR(fileinfo.st_mode))
filetype = DIRECTORY;
-# ifdef S_IFIFO
+# ifdef S_ISFIFO
else if (S_ISFIFO(fileinfo.st_mode))
filetype = FIFO;
-# endif // S_IFIFO
-# if defined(S_ICHR) && defined(S_IBLK)
+# endif // S_ISFIFO
+# if defined(S_ISCHR) && defined(S_ISBLK)
else if (S_ISCHR(fileinfo.st_mode) || S_ISBLK(fileinfo.st_mode))
filetype = DEVICE;
-# endif // S_ICHR && S_IBLK
-# ifdef S_ILNK
+# endif // S_ISCHR && S_ISBLK
+# ifdef S_ISLNK
else if (S_ISLNK(fileinfo.st_mode))
filetype = LINK;
-# endif // S_ILNK
+# endif // S_ISLNK
else
filetype = PLAIN;
}