# HG changeset patch # User Christophe Lincoln # Date 1253821203 -7200 # Node ID da1f31fbbf36478f943401dc3e0780f087597dec # Parent 085349c91f6a1b8cc664a6f0e757056f445644c8 Fix: patch fltk-2.0.x to build with gcc-4.x diff -r 085349c91f6a -r da1f31fbbf36 fltk-2.0.x/receipt --- a/fltk-2.0.x/receipt Thu Sep 24 19:11:22 2009 +0000 +++ b/fltk-2.0.x/receipt Thu Sep 24 21:40:03 2009 +0200 @@ -16,6 +16,7 @@ compile_rules() { cd $src + patch -p 0 < ../stuff/filename_list-dirent.patch || exit 1 ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ diff -r 085349c91f6a -r da1f31fbbf36 fltk-2.0.x/stuff/filename_list-dirent.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fltk-2.0.x/stuff/filename_list-dirent.patch Thu Sep 24 21:40:03 2009 +0200 @@ -0,0 +1,11 @@ +--- src/filename_list.cxx 2009-09-24 21:22:26.000000000 +0200 ++++ src/filename_list.cxx 2009-09-24 21:28:12.000000000 +0200 +@@ -63,7 +63,7 @@ + // some Unix systems): + int n = scandir(d, list, 0, sort); + #elif defined(__linux) || defined (__FreeBSD__) || defined (__NetBSD__) +- int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort); ++ int n = scandir(d, list, 0, (int(*)(const dirent **,const dirent **))sort); + #elif defined(__hpux) || defined(__CYGWIN__) + // HP-UX, Cygwin define the comparison function like this: + int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort);