/[cvs]/eggdrop1.8/src/compat/gethostbyname2.h
ViewVC logotype

Contents of /eggdrop1.8/src/compat/gethostbyname2.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Wed Oct 6 19:07:47 2010 UTC (8 years, 10 months ago) by pseudo
Branch: MAIN
CVS Tags: HEAD
Branch point for: gettext
Changes since 1.2: +6 -4 lines
File MIME type: text/x-csrc
Fixed some problems with IPv6 autodetection and system headers.

1 /*
2 * gethostbyname2.h
3 * prototypes for gethostbyname2.c
4 *
5 * $Id: gethostbyname2.h,v 1.2 2010/08/23 21:27:40 pseudo Exp $
6 */
7 /*
8 * Copyright (C) 2010 Eggheads Development Team
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 */
24
25 #ifndef _EGG_COMPAT_GETHOSTBYNAME2
26 #define _EGG_COMPAT_GETHOSTBYNAME2
27
28 #include "src/main.h"
29
30 #include <netdb.h>
31 #ifdef HAVE_SYS_SOCKET_H
32 # include <sys/socket.h>
33 #endif
34 #include <netinet/in.h>
35
36 #if defined IPV6 && !defined HAVE_GETHOSTBYNAME2
37 struct hostent *gethostbyname2(const char *name, int af);
38 #endif
39 #endif /* _EGG_COMPAT_GETHOSTBYNAME2 */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23