Old glibc versions (e.g. 2.2.5) don't include scandir64(). The attached patch stops attempting to use large directory support on such old glibc versions. I'm not sure if the version check in the patch (>=2.3) is optimum, but it's better than what's in there now! I haven't exhaustively tested the results, but it compiles on a Red Hat 7.2 and runs Dillo2.
>>> Dan -- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has moved
--- orig/fltk-2.0.x-r6403/fltk/filename.h Sun Sep 14 00:54:06 2008 +++ fltk-2.0.x-r6403/fltk/filename.h Thu Oct 16 14:12:58 2008 @@ -63,8 +63,12 @@ # include <features.h> # include <sys/types.h> # include <dirent.h> +#if defined(__GLIBC_PREREQ) +#if __GLIBC_PREREQ(2,3) # define dirent dirent64 # define scandir scandir64 +#endif +#endif #else // warning: on some systems (very few nowadays?) <dirent.h> may not exist.
pgpac7Ym8eohx.pgp
Description: PGP signature
_______________________________________________ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs