summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1998-11-08 15:34:18 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1998-11-08 15:34:18 +0000
commit0768612ddbeef6977a756a13f909bbb83ee2d9c6 (patch)
tree417353eb9675458c3e823dce1609d0a75ab0c458 /src
parent4e544943de0a72903d9960c0c93a18af8318bd29 (diff)
HP-UX fixes.
git-svn-id: file:///fltk/svn/fltk/trunk@72 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/filename_list.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/filename_list.cxx b/src/filename_list.cxx
index aa8fd91af..b403defb5 100644
--- a/src/filename_list.cxx
+++ b/src/filename_list.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: filename_list.cxx,v 1.6 1998/11/08 15:05:45 mike Exp $"
+// "$Id: filename_list.cxx,v 1.7 1998/11/08 15:34:18 mike Exp $"
//
// Filename list routines for the Fast Light Tool Kit (FLTK).
//
@@ -40,16 +40,20 @@ extern "C" {
}
int filename_list(const char *d, dirent ***list) {
-#if defined(_AIX) || defined(CRAY) || defined(HPUX)
+#if defined(_AIX) || defined(CRAY)
// on some systems you may need to do this, due to a rather common
// error in the prototype for the sorting function, where a level
// of pointer indirection is missing:
return scandir(d, list, 0, (int(*)(const void*,const void*))numericsort);
+#elif defined(hpux)
+ // HP-UX defines the comparison function to take const pointers instead of
+ // ordinary ones...
+ return scandir(d, list, 0, (int(*)(const dirent **, const dirent **))numericsort);
#else
return scandir(d, list, 0, numericsort);
#endif
}
//
-// End of "$Id: filename_list.cxx,v 1.6 1998/11/08 15:05:45 mike Exp $".
+// End of "$Id: filename_list.cxx,v 1.7 1998/11/08 15:34:18 mike Exp $".
//