Update graphics/cimg to version 1.7.5,3
[dports.git] / graphics / ida / dragonfly / patch-browser.c
1 --- browser.c.orig      2016-04-05 12:59:50.000000000 +0300
2 +++ browser.c
3 @@ -227,9 +227,12 @@ static Boolean browser_readdir(XtPointer
4                         file->basename);
5             }
6         }
7 +#ifndef __DragonFly__
8         if (file->d_type != DT_UNKNOWN) {
9             file->st.st_mode = DTTOIF(file->d_type);
10 -       } else {
11 +       } else
12 +#endif
13 +       {
14             if (-1 == stat(file->filename, &file->st)) {
15                 fprintf(stderr,"stat %s: %s\n",
16                         file->filename,strerror(errno));