Can someone, please, confirm that r.9649 compiles well with MacOS 10.8 ? > Because of a change in the dirent.h header file in 10.8, the source > file filename_list.cxx no longer compiles correctly. > > A patch to repair this is: > > diff --git a/src/filename_list.cxx b/src/filename_list.cxx > index 6434d67..6bc126b 100644 > --- a/src/filename_list.cxx > +++ b/src/filename_list.cxx > @@ -104,7 +104,7 @@ int fl_filename_list(const char *d, dirent ***list, > #ifndef HAVE_SCANDIR > // This version is when we define our own scandir > int n = fl_scandir(dirloc, list, 0, sort); > -#elif defined(HAVE_SCANDIR_POSIX) && !defined(__APPLE__) > +#elif defined(HAVE_SCANDIR_POSIX) || defined(__APPLE__) > // POSIX (2008) defines the comparison function like this: > int n = scandir(dirloc, list, 0, (int(*)(const dirent **, const dirent > **))sort); > #elif defined(__osf__) >
_______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
