#include <event2/event-config.h>
+#include "../ipv6-internal.h"
+
#include <sys/types.h>
#ifdef WIN32
# endif
#endif
+#include <../util-internal.h>
+
#ifdef WIN32
#define stat _stat
#define fstat _fstat
if (ss.ss_family == AF_INET) {
got_port = ntohs(((struct sockaddr_in*)&ss)->sin_port);
inaddr = &((struct sockaddr_in*)&ss)->sin_addr;
+#ifdef AF_INET6
} else if (ss.ss_family == AF_INET6) {
got_port = ntohs(((struct sockaddr_in6*)&ss)->sin6_port);
inaddr = &((struct sockaddr_in6*)&ss)->sin6_addr;
+#endif
} else {
fprintf(stderr, "Weird address family %d\n",
ss.ss_family);
#include "regress.h"
#include "regress_testutils.h"
+#include "../util-internal.h"
+
static int dns_ok = 0;
static int dns_got_cancel = 0;
static int dns_err = 0;
#include "regress.h"
#include "regress_testutils.h"
+#include "../util-internal.h"
+
/* globals */
static struct evdns_server_port *dns_port;
evutil_socket_t dns_sock = -1;
#include "event2/listener.h"
#include "event2/thread.h"
+#include "../util-internal.h"
+
static int cfg_verbose = 0;
static int cfg_help = 0;