From a33663c08681c2c0ecedda478e1ae9953237b1aa Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 27 Jul 2007 17:52:17 +0000 Subject: SIGHUP needs to be #define'd on windows. This is an i-hate-windows day today. Also, define WIN32_LEAN_AND_MEAN as we should be able to get away with using it now we dont have the shell functions git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7595 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/filelogger.cpp | 3 +-- src/server.cpp | 2 +- win/inspircd_win32wrapper.h | 4 ++++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/filelogger.cpp b/src/filelogger.cpp index 5fcd58f15..244b62717 100644 --- a/src/filelogger.cpp +++ b/src/filelogger.cpp @@ -11,8 +11,7 @@ * --------------------------------------------------- */ -#include -#include +#include "inspircd.h" #include #include #include "socketengine.h" diff --git a/src/server.cpp b/src/server.cpp index 2689b6f35..d993e7b63 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -32,7 +32,7 @@ void InspIRCd::SignalHandler(int signal) void InspIRCd::Exit(int status) { #ifdef WINDOWS - IPC->Close(); + WindowsIPC->Close(); #endif if (this) { diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h index 3f412db55..0fd43fab8 100644 --- a/win/inspircd_win32wrapper.h +++ b/win/inspircd_win32wrapper.h @@ -24,6 +24,10 @@ /* Make builds smaller, leaner and faster */ #define VC_EXTRALEAN +#define WIN32_LEAN_AND_MEAN + +/* Not defined in windows */ +#define SIGHUP 1 /* They just have to be *different*, don't they. */ #define PATH_MAX MAX_PATH -- cgit v1.2.3