Skip to content

Commit

Permalink
stress-schedmix: only declare buf array for linux builds
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Ian King <[email protected]>
  • Loading branch information
ColinIanKing committed Jul 28, 2023
1 parent 1e00bef commit 1d77787
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stress-schedmix.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ static inline void stress_schedmix_waste_time(const stress_args_t *args)
int i, n, status;
pid_t pid;
double min1, min5, min15;
#if defined(__linux__)
char buf[256];
#endif
struct tms tms_buf;
#if defined(HAVE_GETRUSAGE) && \
(defined(RUSAGE_SELF) || defined(RUSAGE_CHILDREN))
Expand Down

0 comments on commit 1d77787

Please sign in to comment.