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__) This issue is noted in the comments for homebrew, a Mac build system, issue https://github.com/mxcl/homebrew/issues/13649. A patch has been submitted there but it seems the bug should likely be fixed upstream. _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
