authd: some more win32 fixes

This commit is contained in:
William Pitcock 2016-03-20 01:37:00 -05:00
parent 66cd5f6695
commit 2dea53a203
4 changed files with 9 additions and 4 deletions

View file

@ -28,7 +28,7 @@
*/
#ifdef _WIN32
#include <ratbox_lib.h>
#include <rb_lib.h>
#include "getaddrinfo.h"
/* $Id$ */

View file

@ -42,7 +42,7 @@
*/
#ifdef _WIN32
#include <ratbox_lib.h>
#include <rb_lib.h>
#include "getaddrinfo.h"
#include "getnameinfo.h"

View file

@ -79,7 +79,11 @@
#include <rb_lib.h>
#ifndef _WIN32
#include <netdb.h>
typedef struct addrinfo rb_addrinfo;
#else
#include "getaddrinfo.h"
#include "getnameinfo.h"
@ -88,6 +92,7 @@
#define freeaddrinfo rb_freeaddrinfo
extern const char * get_windows_nameservers(void);
typedef struct rb_addrinfo rb_addrinfo;
#endif
#include "stdinc.h"
@ -235,7 +240,7 @@ parse_resvconf(void)
static void
add_nameserver(const char *arg)
{
struct addrinfo hints, *res;
rb_addrinfo hints, *res;
/* Done max number of nameservers? */
if (irc_nscount >= IRCD_MAXNS)

View file

@ -29,7 +29,7 @@
*/
#ifdef _WIN32
#include <ratbox_lib.h>
#include <rb_lib.h>
#include <windows.h>
#include <iphlpapi.h>