[wvdial] build fix
authorhschang <chang@dev3>
Wed, 2 Jul 2014 07:15:23 +0000 (16:15 +0900)
committerhschang <chang@dev3>
Wed, 2 Jul 2014 07:15:23 +0000 (16:15 +0900)
meta-openvuplus/recipes-connectivity/wvdial/wvdial-1.60/wvdial_fileselect.patch [new file with mode: 0644]
meta-openvuplus/recipes-connectivity/wvdial/wvdial_1.60.bb

diff --git a/meta-openvuplus/recipes-connectivity/wvdial/wvdial-1.60/wvdial_fileselect.patch b/meta-openvuplus/recipes-connectivity/wvdial/wvdial-1.60/wvdial_fileselect.patch
new file mode 100644 (file)
index 0000000..467cbec
--- /dev/null
@@ -0,0 +1,22 @@
+diff --git a/wvmodemscan.cc b/wvmodemscan.cc
+index ef5ab87..f97581e 100644
+--- a/wvmodemscan.cc
++++ b/wvmodemscan.cc
+@@ -503,11 +503,16 @@ static int fileselect(const struct dirent *e)
+ #endif
+ }
+-
++#if defined(__GLIBC__) && __GLIBC_PREREQ(2, 10)
++static int filesort(const struct dirent **e1, const struct 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;
+     
index 7b20c5d..c247a59 100644 (file)
@@ -9,12 +9,13 @@ LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=55ca817ccb7d5b5b66355690e9abc605"
 SRC_URI = "\
        http://www.alumnit.ca/download/wvdial-1.60.tar.gz \
        file://wvdial-vuplus_001.patch;patch=1 \
+       file://wvdial_fileselect.patch \
        "
 
 DEPENDS = "wvstreams ppp"
 RDEPENDS_${PN} = "ppp wvstreams"
 
-inherit autotools pkgconfig
+inherit autotools-brokensep pkgconfig
 
 CFLAGS += " -Wno-write-strings "
 LDFLAGS = " -L ${CROSS_DIR}/${TARGET_SYS}/usr/lib -luniconf -lwvstreams -lwvbase -lwvutils "