Skip to content

Commit

Permalink
sched.hh: add missing include
Browse files Browse the repository at this point in the history
sched.hh now uses strlcpy(), which is defined in <string.h> so we should
include it directly instead of hoping that the code including sched.hh
will also include string.h.

Refs #1022.

Signed-off-by: Nadav Har'El <[email protected]>
  • Loading branch information
nyh committed Jun 20, 2019
1 parent e1260d5 commit 9e34f42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/osv/sched.hh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <osv/rcu.hh>
#include <osv/clock.hh>
#include <osv/timer-set.hh>
#include <string.h>

typedef float runtime_t;

Expand Down

0 comments on commit 9e34f42

Please sign in to comment.