/*++ Linux DNS client library implementation Copyright (C) 2006 Krishna Ganugapati This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ++*/ #ifdef UNICODE #undef UNICODE #endif #ifdef WIN32 #include #include #define SECURITY_WIN32 #include #include #endif #include #ifdef HAVE_STDLIB_H #include #endif #ifdef HAVE_SYS_VARARGS_H #include #endif #include #ifdef HAVE_TIME_H #include #endif #ifdef HAVE_SYS_TIME_H #include #endif #include #ifdef HAVE_STRINGS_H #include #endif #ifndef WIN32 /* pthread.h must be included before errno so that a thread-safe errno is used if available. */ #ifdef HAVE_PTHREAD_H #include #endif #include #include #include #include #include #ifdef HAVE_NETDB_H #include #endif #ifdef HAVE_ARPA_INET_H #include #endif #ifdef HAVE_NETINET_IN_H #include #endif #ifdef HAVE_SYS_IOCTL_H #include #endif #ifdef HAVE_SYS_SOCKIO_H #include #endif #ifdef HAVE_NET_IF_H #if defined(__ia64) // // Fix to build on HP-UX IA64 // /usr/include/machine/sys/getppdp.h gets included as part of // including net/if.h; however, getppdp.h has the following definition // which will not build when using gcc 4.x // extern union mpinfou spu_info[]; // So, the following define is intended to keep from including this header // #define _MACHINE_SYS_GETPPDP_INCLUDED #endif #include #endif #ifdef HAVE_NET_IF_DL_H #include #endif #ifdef HAVE_IFADDRS_H #include #endif #ifdef HAVE_ARPA_NAMESER_H #include #endif #ifdef HAVE_RESOLV_H #include #endif #if HAVE_WC16STR_H #include #endif #include #include #include #include #include #endif