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.
8 * Stub routine for `getaddrinfo' for porting support.
15 /* TODO(sbc): remove this once we have netdb.h in newlib toolchain */
16 #define EAI_SYSTEM (-1)
18 int getaddrinfo(const char *node, const char *service,
19 const struct addrinfo *hints,
20 struct addrinfo **res) {