wok-next
annotate fltk-2.0.x/stuff/filename_list-dirent.patch @ rev 5094
tazbb: sync CSS and update page
| author |
Christophe Lincoln <pankso@slitaz.org> |
| date |
Mon Mar 15 21:49:59 2010 +0100 (2010-03-15) |
| parents |
|
| children |
|
| rev |
line source |
|
pankso@4242
|
1 --- src/filename_list.cxx 2009-09-24 21:22:26.000000000 +0200
|
|
pankso@4242
|
2 +++ src/filename_list.cxx 2009-09-24 21:28:12.000000000 +0200
|
|
pankso@4242
|
3 @@ -63,7 +63,7 @@
|
|
pankso@4242
|
4 // some Unix systems):
|
|
pankso@4242
|
5 int n = scandir(d, list, 0, sort);
|
|
pankso@4242
|
6 #elif defined(__linux) || defined (__FreeBSD__) || defined (__NetBSD__)
|
|
pankso@4242
|
7 - int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort);
|
|
pankso@4242
|
8 + int n = scandir(d, list, 0, (int(*)(const dirent **,const dirent **))sort);
|
|
pankso@4242
|
9 #elif defined(__hpux) || defined(__CYGWIN__)
|
|
pankso@4242
|
10 // HP-UX, Cygwin define the comparison function like this:
|
|
pankso@4242
|
11 int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort);
|