fltk/fltk-1.1.9-gcc-4-4.patch
2012-02-01 14:20:53 +04:00

13 lines
645 B
Diff

Index: src/filename_list.cxx
===================================================================
--- src/filename_list.cxx
+++ src/filename_list.cxx 2009-08-12 11:02:03.000000000 +0200
@@ -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);
#else
// This version is when we define our own scandir (WIN32 and perhaps
// some Unix systems) and apparently on IRIX: