The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / wvdial / 0001-uClibc-scandir.patch
1 Fix wvdial so that it works with scandir as defined in uClibc.
2
3 Signed-off-by: Simon Dawson <spdawson@gmail.com>
4
5 diff -Nurp a/wvmodemscan.cc b/wvmodemscan.cc
6 --- a/wvmodemscan.cc    2009-09-29 18:27:28.000000000 +0100
7 +++ b/wvmodemscan.cc    2012-07-28 14:03:56.359729660 +0100
8 @@ -495,13 +495,13 @@ static int fileselect(const struct diren
9         // (no internal ISDN support)   || !strncmp(e->d_name, "ttyI", 4);
10  }
11  
12 -#if defined(__GLIBC__) && __GLIBC_PREREQ(2, 10)
13 +#if defined(__UCLIBC__) || (defined(__GLIBC__) && __GLIBC_PREREQ(2, 10))
14  static int filesort(const dirent **e1, const dirent **e2)
15  #else
16  static int filesort(const void *_e1, const void *_e2)
17  #endif
18  {
19 -#if !(defined(__GLIBC__) && __GLIBC_PREREQ(2, 10))
20 +#if !(defined(__UCLIBC__) || (defined(__GLIBC__) && __GLIBC_PREREQ(2, 10)))
21      dirent const * const *e1 = (dirent const * const *)_e1;
22      dirent const * const *e2 = (dirent const * const *)_e2;
23  #endif