wok-4.x diff fltk/stuff/filename_list-dirent.patch @ rev 6186

Up: babl, babl-dev to 0.1.2.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Sep 10 18:41:32 2010 +0000 (2010-09-10)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/fltk/stuff/filename_list-dirent.patch	Fri Sep 10 18:41:32 2010 +0000
     1.3 @@ -0,0 +1,11 @@
     1.4 +--- src/filename_list.cxx	Thu Sep 24 21:32:52 2009
     1.5 ++++ src/filename_list.cxx	Thu Sep 24 21:35:20 2009
     1.6 +@@ -67,7 +67,7 @@
     1.7 +   // The vast majority of UNIX systems want the sort function to have this
     1.8 +   // prototype, most likely so that it can be passed to qsort without any
     1.9 +   // changes:
    1.10 +-  int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort);
    1.11 ++  int n = scandir(d, list, 0, (int(*)(const dirent **,const dirent **))sort);
    1.12 + #else
    1.13 +   // This version is when we define our own scandir (WIN32 and perhaps
    1.14 +   // some Unix systems) and apparently on IRIX: