Permalink
Browse files

check if MPI_ERR_SYSRESOURCE exists

  • Loading branch information...
1 parent 1a9ecc0 commit 828ddf2389057a2c549d6b73d58b7e4ce4815772 @seiya committed Apr 21, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 ext/mpi/mpi.c
View
@@ -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");
}

0 comments on commit 828ddf2

Please sign in to comment.