aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/fltk
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2010-02-17 16:04:46 +0800
committergahr <gahr@FreeBSD.org>2010-02-17 16:04:46 +0800
commit44d291723f2ab1615fef2acdccb3c471ca3695ef (patch)
treecfd59924b7f8795781c3e0f8b28e0fd9196cd886 /x11-toolkits/fltk
parenta259819b80234d79b249c4e397cdca70cace9daa (diff)
downloadfreebsd-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.cxx2
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__)