Commit 4eb8f69d authored by bg.chun's avatar bg.chun Committed by Phil Coval

[IOT-1361]Fix android X86_64 runtime issues

Add missing .h files on ifaddrs.h
and android caipnwmonitor.c for fix runtime issue.

Change-Id: Iec71fa0929b8682fda05a4d0d7cb89351be01d2d
Signed-off-by: default avatarbg.chun <bg.chun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14537Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Larry Sachs's avatarLarry Sachs <larry.j.sachs@intel.com>
Reviewed-by: default avatarHyuna Jo <hyuna0213.jo@samsung.com>
Reviewed-by: default avatarPhil Coval <philippe.coval@osg.samsung.com>
parent c03befc9
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
******************************************************************/ ******************************************************************/
#include "caifaddrs.h" #include "caifaddrs.h"
#include "oic_malloc.h"
#include "oic_string.h"
#include <stdbool.h> #include <stdbool.h>
#include <string.h> #include <string.h>
...@@ -27,6 +29,7 @@ ...@@ -27,6 +29,7 @@
#include <unistd.h> #include <unistd.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <net/if_arp.h> #include <net/if_arp.h>
#include <net/if.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <linux/netlink.h> #include <linux/netlink.h>
#include <linux/rtnetlink.h> #include <linux/rtnetlink.h>
...@@ -207,7 +210,6 @@ CAResult_t CAGetIfaddrsUsingNetlink(struct ifaddrs **ifap) ...@@ -207,7 +210,6 @@ CAResult_t CAGetIfaddrsUsingNetlink(struct ifaddrs **ifap)
} }
} }
exit: exit:
// release all resources // release all resources
close(netlinkFd); close(netlinkFd);
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <coap/utlist.h> #include <coap/utlist.h>
#include <linux/netlink.h> #include <linux/netlink.h>
#include <linux/rtnetlink.h> #include <linux/rtnetlink.h>
#include <net/if.h>
#include "caadapterutils.h" #include "caadapterutils.h"
#include "caipnwmonitor.h" #include "caipnwmonitor.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment