/* */ #ifdef HAVE_CONFIG_H # include "config.h" #endif // HAVE_CONFIG_H #ifdef __MINGW32__ # define _WIN32_WINNT 0x501 # include # undef ERROR # include #endif // __MINGW32__ #ifdef HAVE_NETDB_H # include #endif // HAVE_NETDB_H #ifdef HAVE_SYS_SOCKET_H # include #endif // HAVE_SYS_SOCKET_H #ifdef HAVE_NETINET_IN_H # include #endif // HAVE_NETINET_IN_H #ifdef HAVE_ARPA_INET_H # include #endif // HAVE_ARPA_INET_H #include int inet_aton(const char *cp, struct in_addr *inp) { unsigned long res = inet_addr(cp); if (res == INADDR_NONE && strcmp(cp, "255.255.255.255")) return 0; if (inp) inp->s_addr = res; return 1; }