connection : fix build error
authorBaptiste DURAND <baptiste.durand@frignu.net>
Fri, 6 Sep 2013 14:15:29 +0000 (16:15 +0200)
committerBaptiste DURAND <baptiste.durand@frignu.net>
Fri, 6 Sep 2013 14:15:29 +0000 (16:15 +0200)
Signed-off-by: Baptiste DURAND <baptiste.durand@frignu.net>
meta-wrt-tizen/recipes-wrt/connection/connection-extraconf.inc
meta-wrt-tizen/recipes-wrt/connection/connection/fix-undefine-func-inet_ntoa.patch [new file with mode: 0644]
meta-wrt-tizen/recipes-wrt/connection/connection/fix-unused-var.patch [new file with mode: 0644]

index e69de29..16ce561 100644 (file)
@@ -0,0 +1,8 @@
+SRC_URI += " file://fix-undefine-func-inet_ntoa.patch"
+SRC_URI += " file://fix-unused-var.patch"
+
+do_patch_append () {
+ cat ${WORKDIR}/fix-undefine-func-inet_ntoa.patch | patch -s -p1 --fuzz=2
+ cat ${WORKDIR}/fix-unused-var.patch | patch -s -p1 --fuzz=2
+}
diff --git a/meta-wrt-tizen/recipes-wrt/connection/connection/fix-undefine-func-inet_ntoa.patch b/meta-wrt-tizen/recipes-wrt/connection/connection/fix-undefine-func-inet_ntoa.patch
new file mode 100644 (file)
index 0000000..af4727e
--- /dev/null
@@ -0,0 +1,16 @@
+diff --git a/src/connection_profile.c b/src/connection_profile.c
+index 6f4f9e9..d6f4b1b 100755
+--- a/src/connection_profile.c
++++ b/src/connection_profile.c
+@@ -20,6 +20,11 @@
+ #include <vconf/vconf.h>
+ #include "net_connection_private.h"
++#include <sys/socket.h>
++#include <netinet/in.h>
++#include <arpa/inet.h>
++
++
+ static connection_cellular_service_type_e __profile_convert_to_connection_cellular_service_type(net_service_type_t svc_type)
+ {
diff --git a/meta-wrt-tizen/recipes-wrt/connection/connection/fix-unused-var.patch b/meta-wrt-tizen/recipes-wrt/connection/connection/fix-unused-var.patch
new file mode 100644 (file)
index 0000000..fab4194
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 30ba177..bc25c64 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -18,7 +18,7 @@ FOREACH(flag ${${fw_name}_CFLAGS})
+     SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ ENDFOREACH(flag)
+-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror")
++SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror -Wno-unused-but-set-variable")
+ SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
+ IF("${ARCH}" STREQUAL "arm")