Dash:
[t2.git] / package / network / wvdial / hotfix-glibc.patch
blob3a175911ce71352deb2d4b74ced0ef927326def5
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../wvdial/glibc.patch
5 # Copyright (C) 2009 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
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
14 # version.
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
19 @@ -495,11 +495,16 @@
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)
26 +#else
27 static int filesort(const void *_e1, const void *_e2)
28 +#endif
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;
33 +#endif
34 const char *p1, *p2;
35 int diff;