+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
+}
+
--- /dev/null
+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)
+ {
--- /dev/null
+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")