aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/sem.cpp
diff options
context:
space:
mode:
authortobo <tobo@yandex-team.ru>2022-04-07 08:59:43 +0300
committertobo <tobo@yandex-team.ru>2022-04-07 08:59:43 +0300
commit8d0bed04edbd809859fe349779c07ef122fdeca2 (patch)
tree5637277bc2da6afb261b990047079e132f5b8d2b /util/system/sem.cpp
parent3bd25da701a5b6de40acbea240354462348803d6 (diff)
downloadydb-8d0bed04edbd809859fe349779c07ef122fdeca2.tar.gz
remove unused includes
ref:f8c119cf3a796a59ab5be4424e5364ba6a201d40
Diffstat (limited to 'util/system/sem.cpp')
-rw-r--r--util/system/sem.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/system/sem.cpp b/util/system/sem.cpp
index 4a93b903b5..ace53ddcff 100644
--- a/util/system/sem.cpp
+++ b/util/system/sem.cpp
@@ -6,14 +6,11 @@
#include <alloca.h>
#endif
-#include <cerrno>
#include <cstring>
#ifdef _win_
#include "winint.h"
#else
- #include <signal.h>
- #include <unistd.h>
#include <semaphore.h>
#if defined(_bionic_) || defined(_darwin_) && defined(_arm_)
@@ -42,9 +39,12 @@ union semun arg;
#include <util/digest/city.h>
#include <util/string/cast.h>
-#include <util/random/random.h>
#include <util/random/fast.h>
+#if !defined(_unix_) || defined(_darwin_)
+ #include <util/random/random.h>
+#endif
+
namespace {
class TSemaphoreImpl {
private: