From: Nadav Har'El <
n...@scylladb.com>
Committer: Nadav Har'El <
n...@scylladb.com>
Branch: master
sched: add missing include
sched.hh uses std::array, but was missing an include of <array>. Somehow
this worked until recently, but stopped working in gcc 12.1.1, so let's
add the missing include.
This is one of the fixes needed to build on Fedora 36 (refs #1198).
Signed-off-by: Nadav Har'El <
n...@scylladb.com>
---
diff --git a/include/osv/sched.hh b/include/osv/sched.hh
--- a/include/osv/sched.hh
+++ b/include/osv/sched.hh
@@ -19,6 +19,7 @@
#include <osv/mutex.h>
#include <atomic>
#include "osv/lockless-queue.hh"
+#include <array>
#include <list>
#include <memory>
#include <vector>