X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=blobdiff_plain;f=nscd%2Fgai.c;h=23964b7fd7b57a6e45aec0f44357111c9e98fb7a;hp=46f8b8bec992f848483c6c7cd6d3139645ea843a;hb=4b69b20a6f55e974e80e2eff97f0c79257673d5e;hpb=d36c62cc502bf7a9b51b1b4b5d0336f5d3ad7fec diff --git a/nscd/gai.c b/nscd/gai.c index 46f8b8bec9..23964b7fd7 100644 --- a/nscd/gai.c +++ b/nscd/gai.c @@ -3,8 +3,9 @@ Contributed by Ulrich Drepper , 2004. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -15,6 +16,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include /* This file uses the getaddrinfo code but it compiles it without NSCD support. We just need a few symbol renames. */ #define __inet_aton inet_aton @@ -25,6 +27,8 @@ #define __sendto sendto #define __strchrnul strchrnul #define __getline getline +/* nscd uses 1MB or 2MB thread stacks. */ +#define __libc_use_alloca(size) (size <= __MAX_ALLOCA_CUTOFF) #include