From 2d698b6e42d8dca191ac795ef5dba3bf62496eec Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 9 Apr 2010 16:13:32 -0700 Subject: Integrate bash 3.2 version This is merge of current Debian stable (Lenny) version of Bash with Vyatta changes. --- lib/sh/netopen.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/sh/netopen.c') diff --git a/lib/sh/netopen.c b/lib/sh/netopen.c index aaf0c47..d8eec75 100644 --- a/lib/sh/netopen.c +++ b/lib/sh/netopen.c @@ -66,6 +66,16 @@ extern int errno; extern int inet_aton __P((const char *, struct in_addr *)); #endif +#ifndef HAVE_GETADDRINFO +static int _getaddr __P((char *, struct in_addr *)); +static int _getserv __P((char *, int, unsigned short *)); +static int _netopen4 __P((char *, char *, int)); +#else /* HAVE_GETADDRINFO */ +static int _netopen6 __P((char *, char *, int)); +#endif + +static int _netopen __P((char *, char *, int)); + #ifndef HAVE_GETADDRINFO /* Stuff the internet address corresponding to HOST into AP, in network byte order. Return 1 on success, 0 on failure. */ -- cgit v1.2.3