[COMMIT osv master] sched: add missing include

1 view
Skip to first unread message

Commit Bot

unread,
Jun 25, 2022, 5:24:26 PM6/25/22
to osv...@googlegroups.com, Nadav Har'El
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>
Reply all
Reply to author
Forward
0 new messages