wok 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 | 085349c91f6a |
children | c9c3cd46aa1a |
files | fltk-2.0.x/receipt fltk-2.0.x/stuff/filename_list-dirent.patch |
line diff
1.1 --- a/fltk-2.0.x/receipt Thu Sep 24 19:11:22 2009 +0000 1.2 +++ b/fltk-2.0.x/receipt Thu Sep 24 21:40:03 2009 +0200 1.3 @@ -16,6 +16,7 @@ 1.4 compile_rules() 1.5 { 1.6 cd $src 1.7 + patch -p 0 < ../stuff/filename_list-dirent.patch || exit 1 1.8 ./configure \ 1.9 --prefix=/usr \ 1.10 --mandir=/usr/share/man \
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/fltk-2.0.x/stuff/filename_list-dirent.patch Thu Sep 24 21:40:03 2009 +0200 2.3 @@ -0,0 +1,11 @@ 2.4 +--- src/filename_list.cxx 2009-09-24 21:22:26.000000000 +0200 2.5 ++++ src/filename_list.cxx 2009-09-24 21:28:12.000000000 +0200 2.6 +@@ -63,7 +63,7 @@ 2.7 + // some Unix systems): 2.8 + int n = scandir(d, list, 0, sort); 2.9 + #elif defined(__linux) || defined (__FreeBSD__) || defined (__NetBSD__) 2.10 +- int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort); 2.11 ++ int n = scandir(d, list, 0, (int(*)(const dirent **,const dirent **))sort); 2.12 + #elif defined(__hpux) || defined(__CYGWIN__) 2.13 + // HP-UX, Cygwin define the comparison function like this: 2.14 + int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort);