diff options
author | gahr <gahr@FreeBSD.org> | 2010-02-17 16:04:46 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2010-02-17 16:04:46 +0800 |
commit | 44d291723f2ab1615fef2acdccb3c471ca3695ef (patch) | |
tree | cfd59924b7f8795781c3e0f8b28e0fd9196cd886 /x11-toolkits/fltk | |
parent | a259819b80234d79b249c4e397cdca70cace9daa (diff) | |
download | freebsd-ports-gnome-44d291723f2ab1615fef2acdccb3c471ca3695ef.tar.gz freebsd-ports-gnome-44d291723f2ab1615fef2acdccb3c471ca3695ef.tar.zst freebsd-ports-gnome-44d291723f2ab1615fef2acdccb3c471ca3695ef.zip |
- Fix after scandir API change on STABLE as well (800501)
Reported by: Till Plewe <till.plewe@gmail.com>
Feature safe: yes
Diffstat (limited to 'x11-toolkits/fltk')
-rw-r--r-- | x11-toolkits/fltk/files/patch-src_filename_list.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/x11-toolkits/fltk/files/patch-src_filename_list.cxx b/x11-toolkits/fltk/files/patch-src_filename_list.cxx index da8a399ecf44..5490178a4357 100644 --- a/x11-toolkits/fltk/files/patch-src_filename_list.cxx +++ b/x11-toolkits/fltk/files/patch-src_filename_list.cxx @@ -14,7 +14,7 @@ #ifndef HAVE_SCANDIR int n = scandir(d, list, 0, sort); -#elif defined(__hpux) || defined(__CYGWIN__) -+#elif defined(__hpux) || defined(__CYGWIN__) || (defined(__FreeBSD__) && __FreeBSD_version >= 900006) ++#elif defined(__hpux) || defined(__CYGWIN__) || (defined(__FreeBSD__) && (__FreeBSD_version >= 900006 || (__FreeBSD_version >= 800501 && __FreeBSD_version < 900000))) // HP-UX, Cygwin define the comparison function like this: int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort); #elif defined(__osf__) |