Upstream version 11.40.271.0
[platform/framework/web/crosswalk.git] / src / native_client / src / untrusted / nacl / stubs / getaddrinfo.c
1 /*
2  * Copyright 2014 The Native Client Authors. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6
7 /*
8  * Stub routine for `getaddrinfo' for porting support.
9  */
10
11 #include <errno.h>
12
13 struct addrinfo;
14
15 /* TODO(sbc): remove this once we have netdb.h in newlib toolchain */
16 #define EAI_SYSTEM (-1)
17
18 int getaddrinfo(const char *node, const char *service,
19                 const struct addrinfo *hints,
20                 struct addrinfo **res) {
21   return EAI_SYSTEM;
22 }