void-packages/srcpkgs/wvdial/patches/wvdial-1.61-remove-glibc-ch...

20 lines
620 B
Diff

--- wvmodemscan.cc.orig 2009-09-29 13:27:28.000000000 -0400
+++ wvmodemscan.cc 2015-09-22 08:46:19.575860993 -0400
@@ -495,16 +495,8 @@
// (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;