Skip to content

Commit

Permalink
Add ifdef check for new EHWPOISON errno
Browse files Browse the repository at this point in the history
  • Loading branch information
tom95858 authored and narategithub committed Nov 14, 2019
1 parent bf26b3b commit eae9903
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/ovis_util/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,9 @@ const char* ovis_errno_abbvr(int e)
[EOWNERDEAD] = "EOWNERDEAD",
[ENOTRECOVERABLE] = "ENOTRECOVERABLE",
[ERFKILL] = "ERFKILL",
#ifdef EHWPOISON
[EHWPOISON] = "EHWPOISON",
#endif
};
if (e < sizeof(estr)/sizeof(*estr) && estr[e]) {
return estr[e];
Expand Down

0 comments on commit eae9903

Please sign in to comment.