authd: some more win32 fixes
This commit is contained in:
parent
66cd5f6695
commit
2dea53a203
4 changed files with 9 additions and 4 deletions
|
@ -28,7 +28,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <ratbox_lib.h>
|
#include <rb_lib.h>
|
||||||
#include "getaddrinfo.h"
|
#include "getaddrinfo.h"
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <ratbox_lib.h>
|
#include <rb_lib.h>
|
||||||
#include "getaddrinfo.h"
|
#include "getaddrinfo.h"
|
||||||
#include "getnameinfo.h"
|
#include "getnameinfo.h"
|
||||||
|
|
||||||
|
|
|
@ -79,7 +79,11 @@
|
||||||
#include <rb_lib.h>
|
#include <rb_lib.h>
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
|
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
|
|
||||||
|
typedef struct addrinfo rb_addrinfo;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#include "getaddrinfo.h"
|
#include "getaddrinfo.h"
|
||||||
#include "getnameinfo.h"
|
#include "getnameinfo.h"
|
||||||
|
@ -88,6 +92,7 @@
|
||||||
#define freeaddrinfo rb_freeaddrinfo
|
#define freeaddrinfo rb_freeaddrinfo
|
||||||
|
|
||||||
extern const char * get_windows_nameservers(void);
|
extern const char * get_windows_nameservers(void);
|
||||||
|
typedef struct rb_addrinfo rb_addrinfo;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "stdinc.h"
|
#include "stdinc.h"
|
||||||
|
@ -235,7 +240,7 @@ parse_resvconf(void)
|
||||||
static void
|
static void
|
||||||
add_nameserver(const char *arg)
|
add_nameserver(const char *arg)
|
||||||
{
|
{
|
||||||
struct addrinfo hints, *res;
|
rb_addrinfo hints, *res;
|
||||||
|
|
||||||
/* Done max number of nameservers? */
|
/* Done max number of nameservers? */
|
||||||
if (irc_nscount >= IRCD_MAXNS)
|
if (irc_nscount >= IRCD_MAXNS)
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <ratbox_lib.h>
|
#include <rb_lib.h>
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <iphlpapi.h>
|
#include <iphlpapi.h>
|
||||||
|
|
Loading…
Reference in a new issue