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.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_File_Icon.cxx b/src/Fl_File_Icon.cxx
index d1791d476..fa453c5dd 100644
--- a/src/Fl_File_Icon.cxx
+++ b/src/Fl_File_Icon.cxx
@@ -43,6 +43,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <FL/fl_utf8.H>
#include "flstring.h"
#include <errno.h>
#include <sys/types.h>
@@ -203,7 +204,7 @@ Fl_File_Icon::find(const char *filename,// I - Name of file */
else
filetype = PLAIN;
#else
- if (!stat(filename, &fileinfo))
+ if (!fl_stat(filename, &fileinfo))
{
if (S_ISDIR(fileinfo.st_mode))
filetype = DIRECTORY;