diff options
author | Sadie Powell <sadie@witchery.services> | 2024-02-29 19:07:18 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-02-29 19:11:37 +0000 |
commit | 190c37a68b2de16ff173decbfba85bf4f0dd730d (patch) | |
tree | 5b36deb0047cbdebb21dbb5222c1f6b60f3f39a4 /src/init.cpp | |
parent | a67bef2deeeb010d5d7b8f6e898c76c36c33701a (diff) |
Rework some platform compatibility code.
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index be896ad63..4d8594a9d 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -28,6 +28,7 @@ #include <pwd.h> #include <sys/types.h> #endif +#include <thread> Anope::string Anope::ConfigDir = "conf", Anope::DataDir = "data", Anope::ModuleDir = "lib", Anope::LocaleDir = "locale", Anope::LogDir = "logs"; @@ -513,7 +514,7 @@ bool Anope::Init(int ac, char **av) std::cerr << "WARNING: You are currently running Anope as the root superuser. Anope does not" << std::endl; std::cerr << " require root privileges to run, and it is discouraged that you run Anope" << std::endl; std::cerr << " as the root superuser." << std::endl; - sleep(3); + std::this_thread::sleep_for(std::chrono::seconds(3)); } } |