Fix one more issue with the glob patch.
[glibc.git] / nscd / gai.c
blob7bea8c4294d4876a8816c6ee43c02cd8f097bcdf
1 /* Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3 Contributed by Ulrich Drepper <drepper@cygnus.com>, 2004.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software Foundation,
17 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19 #include <alloca.h>
20 #include <kernel-features.h>
22 /* This file uses the getaddrinfo code but it compiles it without NSCD
23 support. We just need a few symbol renames. */
24 #define __inet_aton inet_aton
25 #define __ioctl ioctl
26 #define __getsockname getsockname
27 #define __socket socket
28 #define __recvmsg recvmsg
29 #define __bind bind
30 #define __sendto sendto
31 #define __strchrnul strchrnul
32 #define __getline getline
33 /* nscd uses 1MB or 2MB thread stacks. */
34 #define __libc_use_alloca(size) (size <= __MAX_ALLOCA_CUTOFF)
36 #include <getaddrinfo.c>
38 /* Support code. */
39 #include <check_pf.c>
40 #include <check_native.c>
41 #ifdef HAVE_LIBIDN
42 # include <libidn/idn-stub.c>
43 #endif
45 /* Some variables normally defined in libc. */
46 service_user *__nss_hosts_database;
48 #if defined NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0
49 int __no_netlink_support attribute_hidden;
50 #endif