From: hschang Date: Wed, 2 Jul 2014 07:15:23 +0000 (+0900) Subject: [wvdial] build fix X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_openvuplus_3.0;a=commitdiff_plain;h=8d2ea9e2dee7f5f30e48016a6bd3b6015e159848 [wvdial] build fix --- 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 index 0000000..467cbec --- /dev/null +++ b/meta-openvuplus/recipes-connectivity/wvdial/wvdial-1.60/wvdial_fileselect.patch @@ -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; + diff --git a/meta-openvuplus/recipes-connectivity/wvdial/wvdial_1.60.bb b/meta-openvuplus/recipes-connectivity/wvdial/wvdial_1.60.bb index 7b20c5d..c247a59 100644 --- a/meta-openvuplus/recipes-connectivity/wvdial/wvdial_1.60.bb +++ b/meta-openvuplus/recipes-connectivity/wvdial/wvdial_1.60.bb @@ -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 "