diff options
author | Adam <Adam@anope.org> | 2011-11-08 17:29:16 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-11-08 17:29:16 -0500 |
commit | b5ff856f47d8e54d12c568462a06351633c29610 (patch) | |
tree | a4e2f96c59ee49aa5e6cacdfd30db6155151ad36 /src/main.cpp | |
parent | 97b9055f92f21cd91af44a3d5dacce0024536cff (diff) |
Windows
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/main.cpp b/src/main.cpp index b115137ea..03920424a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -27,10 +27,9 @@ #include "timers.h" #include "modules.h" -// getrlimit. -#ifndef _WIN32 -# include <sys/time.h> -# include <sys/resource.h> +#ifdef _WIN32 +# include <process.h> +# define execve _execve #endif /******** Global variables! ********/ @@ -47,11 +46,6 @@ bool noexpire = false; /* -noexpire */ bool protocoldebug = false; /* -protocoldebug */ Anope::string binary_dir; /* Used to store base path for Anope */ -#ifdef _WIN32 -# include <process.h> -# define execve _execve -#endif - /* Set to 1 if we are to quit */ bool quitting = false; int return_code = 0; @@ -316,6 +310,10 @@ int main(int ac, char **av, char **envp) /* Clean out the module runtime directory prior to running, just in case files were left behind during a previous run */ ModuleManager::CleanupRuntimeDirectory(); +#ifdef _WIN32 + OnStartup(); +#endif + try { /* General initialization first */ |