hwloc: misc.h: Fix hwloc_strncasecmp() with some icc
tolower needs <ctype.h> Thanks to Ralph Castain for reporting the failure. (cherry picked from commit open-mpi/hwloc@038c372a58) Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
Этот коммит содержится в:
родитель
6764413aa3
Коммит
50b035dddb
@ -17,6 +17,12 @@ bug fixes (and other actions) for each version of hwloc since version
|
||||
in v0.9.1).
|
||||
|
||||
|
||||
Version 1.9.2
|
||||
-------------
|
||||
* Fix some build failures in private/misc.h.
|
||||
Thanks to Pavan Balaji and Ralph Castain for the reports.
|
||||
|
||||
|
||||
Version 1.9.1
|
||||
-------------
|
||||
* Fix a crash when the PCI locality is invalid. Attach to the root object
|
||||
|
@ -353,6 +353,7 @@ EOF])
|
||||
AC_CHECK_HEADERS([unistd.h])
|
||||
AC_CHECK_HEADERS([dirent.h])
|
||||
AC_CHECK_HEADERS([strings.h])
|
||||
AC_CHECK_HEADERS([ctype.h])
|
||||
|
||||
AC_CHECK_FUNCS([strncasecmp], [
|
||||
_HWLOC_CHECK_DECL([strncasecmp], [
|
||||
|
@ -19,6 +19,10 @@
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
#endif
|
||||
#else
|
||||
#ifdef HAVE_CTYPE_H
|
||||
#include <ctype.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Compile-time assertion */
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user