- Fix build after scandir API change

This commit is contained in:
Pietro Cerutti 2010-02-12 07:56:11 +00:00
parent 8337f5d86b
commit 3e1f73cee5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=249639

View File

@ -5,7 +5,7 @@
#ifndef HAVE_SCANDIR
int n = scandir(d, list, 0, sort);
-#elif defined(__hpux) || defined(__CYGWIN__)
+#elif defined(__hpux) || defined(__CYGWIN__) || defined(__FreeBSD__)
+#elif defined(__hpux) || defined(__CYGWIN__) || (defined(__FreeBSD__) && __FreeBSD_version >= 900006)
// HP-UX, Cygwin define the comparison function like this:
int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort);
#elif defined(__osf__)