summaryrefslogtreecommitdiff
path: root/src/filename_list.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2009-07-23 22:51:56 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2009-07-23 22:51:56 +0000
commitf42c5415294d6927ecff1319dd6a6141626f6ff9 (patch)
treeae34e2873d6822ccce327f8b5905f1be20280f30 /src/filename_list.cxx
parenta32ec7f20e1cad1293a0cc8aee1834b1ee67dc80 (diff)
Fixed glibc 2.10 compiler problems (Fedora 11 and others) with scandir()
and strchr() (STR #2222). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6833 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/filename_list.cxx')
-rw-r--r--src/filename_list.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filename_list.cxx b/src/filename_list.cxx
index 75076a122..e32375557 100644
--- a/src/filename_list.cxx
+++ b/src/filename_list.cxx
@@ -77,8 +77,8 @@ int fl_filename_list(const char *d, dirent ***list,
Fl_File_Sort_F *sort) {
#ifndef HAVE_SCANDIR
int n = scandir(d, list, 0, sort);
-#elif defined(__hpux) || defined(__CYGWIN__)
- // HP-UX, Cygwin define the comparison function like this:
+#elif defined(HAVE_SCANDIR_POSIX)
+ // POSIX (2008) defines the comparison function like this:
int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort);
#elif defined(__osf__)
// OSF, DU 4.0x