net/tls: improve network portability
authorJunyeon Lee <junyeon2.lee@samsung.com>
Tue, 14 Mar 2017 07:21:53 +0000 (16:21 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Mon, 17 Apr 2017 10:58:10 +0000 (19:58 +0900)
commitf62b0c240e9785a4e3b2e63bf34ac6e762a18ab4
tree879c993831c4896f6e566cb39bd13debf8ecd3bd
parent28e01965bee47604e845aa08ddc0ec2d12da6787
net/tls: improve network portability

Fix network releated error.
  . resolve build error releated with getaddrinfo and freeaddrinfo
  . store errno before calling fcntl
    (fcntl()->sem_wait() changes an errno to the unexpected value)

Change-Id: Ifa6924a330193dc2fa456ede1779ea9d6cf785ed
Signed-off-by: Junyeon Lee <junyeon2.lee@samsung.com>
os/net/tls/net.c