summaryrefslogtreecommitdiffstats
path: root/external/meta-openembedded/meta-oe/recipes-connectivity/wvdial/wvdial/musl-support.patch
blob: b5ad4823a08038f21c007a5152751a14d27a641f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Drop support for glibc < 2.10, in master we are at 2.28
in process get it working with musl as well.

Upstream-Status: Inappropriate [No upstream]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
--- a/wvmodemscan.cc
+++ b/wvmodemscan.cc
@@ -495,16 +495,8 @@ static int fileselect(const struct diren
 	// (no internal ISDN support)   || !strncmp(e->d_name, "ttyI", 4);
 }
 
-#if defined(__GLIBC__) && __GLIBC_PREREQ(2, 10)
 static int filesort(const dirent **e1, const dirent **e2)
-#else
-static int filesort(const void *_e1, const void *_e2)
-#endif
 {
-#if !(defined(__GLIBC__) && __GLIBC_PREREQ(2, 10))
-    dirent const * const *e1 = (dirent const * const *)_e1;
-    dirent const * const *e2 = (dirent const * const *)_e2;
-#endif
     const char *p1, *p2;
     int diff;