summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-27 17:52:17 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-27 17:52:17 +0000
commita33663c08681c2c0ecedda478e1ae9953237b1aa (patch)
tree052a0b53a5405685f4040921b709eeeecdfe214a
parent357cd5f66079c3c1b2ca8426420c35cfa8585df8 (diff)
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
-rw-r--r--src/filelogger.cpp3
-rw-r--r--src/server.cpp2
-rw-r--r--win/inspircd_win32wrapper.h4
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 <time.h>
-#include <string>
+#include "inspircd.h"
#include <sstream>
#include <fstream>
#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