From f70b7e51ceee509eeaad9cba60386fb5b1c5cf8e Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Mon, 23 Jun 2008 22:32:26 +0000 Subject: [PATCH] Fix a missing header file and ensure we use a portable name for a system limit This commit was SVN r18712. --- opal/mca/base/mca_base_component_find.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/opal/mca/base/mca_base_component_find.c b/opal/mca/base/mca_base_component_find.c index 10e094126c..b69bbd2c27 100644 --- a/opal/mca/base/mca_base_component_find.c +++ b/opal/mca/base/mca_base_component_find.c @@ -24,6 +24,9 @@ #include #include #include +#ifdef HAVE_SYS_PARAM_H +#include +#endif #if OMPI_WANT_LIBLTDL #include "opal/libltdl/ltdl.h" @@ -186,7 +189,7 @@ int mca_base_component_find(const char *directory, const char *type, } if (opal_list_get_end(found_components) == item) { - char h[HOST_NAME_MAX]; + char h[MAXHOSTNAMELEN]; gethostname(h, sizeof(h)); opal_show_help("help-mca-base.txt", "find-available:not-valid", true,