Skip to content

Commit

Permalink
stress-msg: declare get_procinfo only when required for linux
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Ian King <colin.king@canonical.com>
  • Loading branch information
Colin Ian King committed Jun 14, 2019
1 parent 0862c0c commit b3cfa9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stress-msg.c
Expand Up @@ -122,7 +122,9 @@ static int stress_msg(const args_t *args)
pid_t pid;
int msgq_id;
int32_t msg_types = 0;
#if defined(__linux__)
bool get_procinfo = true;
#endif

(void)get_setting("msg-types", &msg_types);

Expand Down

0 comments on commit b3cfa9c

Please sign in to comment.