File fltk-1.1.10-cast.patch of Package fltk

--- src/filename_list.cxx
+++ src/filename_list.cxx
@@ -67,7 +67,7 @@
   // The vast majority of UNIX systems want the sort function to have this
   // prototype, most likely so that it can be passed to qsort without any
   // changes:
-  int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort);
+  int n = scandir(d, list, 0, (int(*)(const dirent**,const dirent**))sort);
   // This version is when we define our own scandir (WIN32 and perhaps
   // some Unix systems) and apparently on IRIX:
openSUSE Build Service is sponsored by