- include <fcntl.h>: Several variables used by fcntl define in this file.
- check if we have member si_fd in siginfo_t before use it. This commit was SVN r5192.
Этот коммит содержится в:
родитель
ef54ce8846
Коммит
12b2a3f56d
@ -974,6 +974,9 @@ AC_CHECK_MEMBERS([struct dirent.d_type], [], [], [
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <dirent.h>])
|
#include <dirent.h>])
|
||||||
|
|
||||||
|
AC_CHECK_MEMBERS([siginfo_t.si_fd],,,[#include <signal.h>])
|
||||||
|
|
||||||
|
|
||||||
# Note that sometimes we have <stdbool.h>, but it doesn't work (e.g.,
|
# Note that sometimes we have <stdbool.h>, but it doesn't work (e.g.,
|
||||||
# have both Portland and GNU installed; using pgcc will find GNU's
|
# have both Portland and GNU installed; using pgcc will find GNU's
|
||||||
# <stdbool.h>, which all it does -- by standard -- is define "bool" to
|
# <stdbool.h>, which all it does -- by standard -- is define "bool" to
|
||||||
|
@ -8,9 +8,15 @@
|
|||||||
#ifdef HAVE_SYS_TYPES_H
|
#ifdef HAVE_SYS_TYPES_H
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_FCNTL_H
|
||||||
|
#include <fcntl.h>
|
||||||
|
#else
|
||||||
#ifdef HAVE_SYS_FCNTL_H
|
#ifdef HAVE_SYS_FCNTL_H
|
||||||
#include <sys/fcntl.h>
|
#include <sys/fcntl.h>
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include "util/output.h"
|
#include "util/output.h"
|
||||||
#include "mca/rml/rml.h"
|
#include "mca/rml/rml.h"
|
||||||
|
@ -228,8 +228,13 @@ static void ompi_show_stackframe (int signo, siginfo_t * info, void * p)
|
|||||||
}
|
}
|
||||||
#ifdef SIGPOLL
|
#ifdef SIGPOLL
|
||||||
case SIGPOLL: {
|
case SIGPOLL: {
|
||||||
|
#ifdef HAVE_SIGINFO_T_SI_FD
|
||||||
ret = snprintf (tmp, size, "si_band:%ld si_fd:%d\n",
|
ret = snprintf (tmp, size, "si_band:%ld si_fd:%d\n",
|
||||||
info->si_band, info->si_fd);
|
info->si_band, info->si_fd);
|
||||||
|
#else
|
||||||
|
ret = snprintf (tmp, size, "si_band:%ld\n",
|
||||||
|
info->si_band);
|
||||||
|
#endif
|
||||||
size -= ret;
|
size -= ret;
|
||||||
tmp += ret;
|
tmp += ret;
|
||||||
break;
|
break;
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user