00001 /* 00002 * inet_aton.h 00003 * prototypes for inet_aton.c 00004 * 00005 * $Id: inet_aton.h,v 1.16 2011/02/13 14:19:33 simple Exp $ 00006 */ 00007 /* 00008 * Copyright (C) 2000 - 2011 Eggheads Development Team 00009 * 00010 * This program is free software; you can redistribute it and/or 00011 * modify it under the terms of the GNU General Public License 00012 * as published by the Free Software Foundation; either version 2 00013 * of the License, or (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00023 */ 00024 00025 #ifndef _EGG_COMPAT_INET_ATON_H 00026 #define _EGG_COMPAT_INET_ATON_H 00027 00028 #include "src/main.h" 00029 #ifdef HAVE_SYS_SOCKET_H 00030 # include <sys/socket.h> 00031 #endif 00032 #include <netinet/in.h> 00033 #include <arpa/inet.h> 00034 00035 #ifndef HAVE_INET_ATON 00036 /* Use our own implementation. */ 00037 int egg_inet_aton(const char *cp, struct in_addr *addr); 00038 #else 00039 # define egg_inet_aton inet_aton 00040 #endif 00041 00042 #endif /* !__EGG_COMPAT_INET_ATON_H */