Index: opal/mca/base/mca_base_components_select.c
===================================================================
--- opal/mca/base/mca_base_components_select.c	(revision 18420)
+++ opal/mca/base/mca_base_components_select.c	(working copy)
@@ -14,6 +14,9 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif

 #include "opal/class/opal_list.h"
 #include "opal/util/strncpy.h"
@@ -35,7 +38,7 @@
     mca_base_component_t *component = NULL;
     mca_base_module_t *module = NULL;
     opal_list_item_t *item = NULL;
-    int priority = 0, best_priority = -1;
+    int32_t priority = 0, best_priority = INT32_MIN;

     *best_module = NULL;
     *best_component = NULL;
