wok-current diff fltk-2.0.x/stuff/filename_list-dirent.patch @ rev 4242
Fix: patch fltk-2.0.x to build with gcc-4.x
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Sep 24 21:40:03 2009 +0200 (2009-09-24) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/fltk-2.0.x/stuff/filename_list-dirent.patch Thu Sep 24 21:40:03 2009 +0200 1.3 @@ -0,0 +1,11 @@ 1.4 +--- src/filename_list.cxx 2009-09-24 21:22:26.000000000 +0200 1.5 ++++ src/filename_list.cxx 2009-09-24 21:28:12.000000000 +0200 1.6 +@@ -63,7 +63,7 @@ 1.7 + // some Unix systems): 1.8 + int n = scandir(d, list, 0, sort); 1.9 + #elif defined(__linux) || defined (__FreeBSD__) || defined (__NetBSD__) 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 + #elif defined(__hpux) || defined(__CYGWIN__) 1.13 + // HP-UX, Cygwin define the comparison function like this: 1.14 + int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort);