1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../wvdial/glibc.patch
5 # Copyright (C) 2009 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- ./wvmodemscan.cc.orig 2007-07-20 00:22:03.000000000 +0300
18 +++ ./wvmodemscan.cc 2009-06-20 21:43:58.000000000 +0300
20 // (no internal ISDN support) || !strncmp(e->d_name, "ttyI", 4);
24 +#if defined(__GLIBC__) && __GLIBC_PREREQ(2, 10)
25 +static int filesort(const dirent **e1, const dirent **e2)
27 static int filesort(const void *_e1, const void *_e2)
30 +#if !(defined(__GLIBC__) && __GLIBC_PREREQ(2, 10))
31 dirent const * const *e1 = (dirent const * const *)_e1;
32 dirent const * const *e2 = (dirent const * const *)_e2;