diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-08 13:15:15 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-08 13:15:15 +0100 |
commit | eb737947eb2afe98f9dac1121fa37d1b746c5657 (patch) | |
tree | 02aa7752555cc4a47b1a9b423066bbdc52a7e8c5 /src/libutil/mem_pool.c | |
parent | e0bfa35ee937940f20a5675bc7582cfc83c2866b (diff) | |
download | rspamd-eb737947eb2afe98f9dac1121fa37d1b746c5657.tar.gz rspamd-eb737947eb2afe98f9dac1121fa37d1b746c5657.zip |
Reorganize includes to reduce namespace pollution.
Diffstat (limited to 'src/libutil/mem_pool.c')
-rw-r--r-- | src/libutil/mem_pool.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libutil/mem_pool.c b/src/libutil/mem_pool.c index 849e70c03..e87a1578b 100644 --- a/src/libutil/mem_pool.c +++ b/src/libutil/mem_pool.c @@ -28,6 +28,11 @@ #include "logger.h" #include "utlist.h" #include "ottery.h" +#include "unix-std.h" + +#ifdef HAVE_SCHED_YIELD +#include <sched.h> +#endif /* Sleep time for spin lock in nanoseconds */ #define MUTEX_SLEEP_TIME 10000000L |