Commit ae890661 authored by Florian Fischer's avatar Florian Fischer
Browse files

waitfd: dynamically decide the syscall number

parent 00c81951
......@@ -14,13 +14,21 @@
#include "FiberHint.hpp"
#include "emper-common.h"
#include "emper-config.h" // IWYU pragma: keep
#include "lib/LinuxVersion.hpp"
#include "sleep_strategy/AbstractIoSleepStrategy.hpp"
#include "sleep_strategy/AbstractWorkerSleepStrategy.hpp"
class Runtime;
#ifndef __NR_waitfd
#define __NR_waitfd 450
static const unsigned __NR_waitfd = []() -> unsigned {
if (EMPER_LINUX_GE("5.17"))
return 451;
else if (EMPER_LINUX_GE("5.16"))
return 450;
else
return 449;
}();
#endif
namespace emper::sleep_strategy {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment