summaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-02-29 19:07:18 +0000
committerSadie Powell <sadie@witchery.services>2024-02-29 19:11:37 +0000
commit190c37a68b2de16ff173decbfba85bf4f0dd730d (patch)
tree5b36deb0047cbdebb21dbb5222c1f6b60f3f39a4 /src/init.cpp
parenta67bef2deeeb010d5d7b8f6e898c76c36c33701a (diff)
Rework some platform compatibility code.
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp3
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));
}
}