diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-18 13:08:37 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-18 13:08:37 +0100 |
commit | 8cf474069601dbb376de86dffae49988029794ee (patch) | |
tree | 4301a14206564f05e99150eb1ea3ef5e46b9f0a3 /config.h.in | |
parent | 7eaf0fbe91ad6d9ffc4eae5cc2c1dc88a953b772 (diff) | |
download | rspamd-8cf474069601dbb376de86dffae49988029794ee.tar.gz rspamd-8cf474069601dbb376de86dffae49988029794ee.zip |
Resatore check for sched_yield.
Diffstat (limited to 'config.h.in')
-rw-r--r-- | config.h.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in index fa69767ac..ba57103f8 100644 --- a/config.h.in +++ b/config.h.in @@ -210,6 +210,7 @@ #cmakedefine HAVE_IPV6_V6ONLY 1 #cmakedefine HAVE_CTYPE_H 1 +#cmakedefine HAVE_SCHED_YEILD 1 /* Configure allocator */ #define uthash_malloc(sz) g_slice_alloc(sz) @@ -420,6 +421,10 @@ #include <google/profiler.h> #endif +#ifdef HAVE_SCHED_YIELD +#include <sched.h> +#endif + #include <errno.h> #include <signal.h> #ifdef HAVE_SIGINFO_H |