1
0
This repository has been archived on 2025-06-16. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openwrt_archive/Xorg/lib/fltk2/patches/100-compile-fixes.patch
Jo-Philipp Wich 6af04d49d1 [packages_10.03.2] merge r30006
SVN-Revision: 30017
2012-02-03 15:58:07 +00:00

15 lines
807 B
Diff

Index: fltk2-r6671/src/filename_list.cxx
===================================================================
--- fltk2-r6671.orig/src/filename_list.cxx 2010-11-03 02:17:17.243001500 +0100
+++ fltk2-r6671/src/filename_list.cxx 2010-11-03 02:24:13.400999350 +0100
@@ -62,6 +62,9 @@
// This version is when we define our own scandir (WIN32 and perhaps
// some Unix systems):
int n = scandir(d, list, 0, sort);
+#elif defined(__UCLIBC_MAJOR__) && \
+ __UCLIBC_MAJOR__ >= 0 && __UCLIBC_MINOR__ >= 9 && __UCLIBC_SUBLEVEL__ >= 31
+ int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort);
#elif defined(__linux) || defined (__FreeBSD__) || defined (__NetBSD__)
int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort);
#elif defined(__hpux) || defined(__CYGWIN__)