Commit 08906d2c authored by sbc's avatar sbc Committed by Commit bot

[NaCl SDK] nacl_io: fix bionic build

getnameinfo has a slightly different signature on bionic.

TEST=./build_tools/build_sdk.py --bionic

Review URL: https://codereview.chromium.org/523043004

Cr-Commit-Position: refs/heads/master@{#292725}
parent 8ac2ad29
......@@ -6,9 +6,15 @@
#include "nacl_io/kernel_wrap.h"
#ifdef __native_client__
int getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host,
socklen_t hostlen, char *serv, socklen_t servlen,
#ifdef __BIONIC__
// bionic has a slightly different signatute to glibc for getnameinfo
int getnameinfo(const struct sockaddr* sa, socklen_t salen, char* host,
size_t hostlen, char* serv, size_t servlen, int flags) {
#else
int getnameinfo(const struct sockaddr* sa, socklen_t salen, char* host,
socklen_t hostlen, char* serv, socklen_t servlen,
unsigned int flags) {
#endif
return ki_getnameinfo(sa, salen, host, hostlen, serv, servlen, flags);
}
#endif
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