Skip to content

Commit

Permalink
Fixes compilation error when not under linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsracz committed May 8, 2021
1 parent 3ccdbb7 commit 1e77a1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/BusMaster.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public:
{
}

#ifdef GTEST
/// Used in unittests to cleanly shutdown the bus master.
void request_shutdown()
{
Expand All @@ -111,7 +112,8 @@ public:
usleep(200);
}
}

#endif

/// Sets the scheduling policy. This must be called exactly once after
/// construction before scheduling any bus activity.
void set_policy(unsigned num_prio, const Fixed16 *strides)
Expand Down

0 comments on commit 1e77a1f

Please sign in to comment.