diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-14 19:21:06 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-14 19:21:06 +0000 |
commit | 939ac66fc0be56ad418d36aa1c7907b451082fc2 (patch) | |
tree | e1ba6184516a70d71a7d4b10e38a7b6395de1742 | |
parent | 3298c5517bb9aade0f397fde3626919f97e7945a (diff) |
Tidyup ifdefs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7308 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/inspircd.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 326c209e9..632319ea3 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -14,18 +14,19 @@ #include "inspircd.h" #include "configreader.h" #include <signal.h> -#ifndef WIN32 +#ifndef WIN32 #include <dirent.h> #include <unistd.h> #include <sys/resource.h> - +#include <dlfcn.h> +#include <getopt.h> /* This is just to be completely certain that the change which fixed getrusage on RH7 doesn't break anything else -- Om */ #ifndef RUSAGE_SELF #define RUSAGE_SELF 0 #endif - #endif + #include <exception> #include <fstream> #include "modules.h" @@ -38,10 +39,9 @@ #include "command_parse.h" #include "exitcodes.h" -#ifndef WIN32 -#include <dlfcn.h> -#include <getopt.h> -#else +#ifdef WIN32 + +/* This MUST remain static and delcared outside the class, so that WriteProcessMemory can reference it properly */ static DWORD owner_processid = 0; DWORD WindowsForkStart(InspIRCd * Instance) |