Skip to content

Commit

Permalink
check if MPI_ERR_SYSRESOURCE exists
Browse files Browse the repository at this point in the history
  • Loading branch information
seiya committed Apr 21, 2011
1 parent 1a9ecc0 commit 828ddf2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/mpi/mpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ check_error(int error)
CAE_ERR(UNSUPPORTED_OPERATION);
CAE_ERR(WIN);
CAE_ERR(LASTCODE);
#ifdef MPI_ERR_SYSRESOURCE
CAE_ERR(SYSRESOURCE);
#endif
default:
rb_raise(rb_eRuntimeError, "unknown error");
}
Expand Down

0 comments on commit 828ddf2

Please sign in to comment.