Commit 3d48a094 authored by Pekka Pessi's avatar Pekka Pessi

Added #include <arpa/inet.h> and <fcntl.h>

into sresolv/sres.c

darcs-hash:20060411214546-65a35-521da24dfdc6f2fe398c714d05b927e02f8fdf8a.gz
parent 564e0a4e
......@@ -49,6 +49,9 @@ typedef unsigned _int32 uint32_t;
#if HAVE_NETINET_IN_H
#include <netinet/in.h>
#if HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#endif
#if HAVE_ARPA_INET_H
......@@ -85,8 +88,6 @@ struct sockaddr_storage {
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
......@@ -2333,8 +2334,6 @@ int sres_resolver_error(sres_resolver_t *res, int socket)
{
int errcode = 0;
int errorlen = sizeof(errcode);
struct sockaddr_storage remote[1] = {{ 0 }};
socklen_t remotelen = sizeof remote;
SU_DEBUG_9(("%s(%p, %u) called\n", "sres_resolver_error", res, socket));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment