The src/threads/condition.h should also explicit include <time.h> because
in some OS (e.g. AIX) the struct timespec is define in <time.h> and the <sys/time.h> is not include <time.h> This commit was SVN r5181.
Этот коммит содержится в:
родитель
b5459e9da6
Коммит
eea0e4dbfb
@ -948,7 +948,7 @@ AC_CHECK_HEADERS([alloca.h aio.h arpa/inet.h dirent.h dlfcn.h execinfo.h \
|
|||||||
sys/types.h sys/ipc.h sys/mman.h sys/resource.h sys/select.h sys/socket.h \
|
sys/types.h sys/ipc.h sys/mman.h sys/resource.h sys/select.h sys/socket.h \
|
||||||
sys/ioctl.h err.h sys/statvfs.h sys/time.h sys/uio.h sys/utsname.h sys/wait.h \
|
sys/ioctl.h err.h sys/statvfs.h sys/time.h sys/uio.h sys/utsname.h sys/wait.h \
|
||||||
syslog.h termios.h ulimit.h unistd.h sys/param.h sys/tree.h sys/queue.h \
|
syslog.h termios.h ulimit.h unistd.h sys/param.h sys/tree.h sys/queue.h \
|
||||||
sys/sockio.h])
|
sys/sockio.h time.h])
|
||||||
|
|
||||||
# SA_RESTART in signal.h
|
# SA_RESTART in signal.h
|
||||||
AC_MSG_CHECKING([if SA_RESTART defined in signal.h])
|
AC_MSG_CHECKING([if SA_RESTART defined in signal.h])
|
||||||
|
@ -20,6 +20,9 @@
|
|||||||
#ifdef HAVE_SYS_TIME_H
|
#ifdef HAVE_SYS_TIME_H
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HAVE_TIME_H
|
||||||
|
#include <time.h>
|
||||||
|
#endif
|
||||||
#if OMPI_HAVE_POSIX_THREADS
|
#if OMPI_HAVE_POSIX_THREADS
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#endif
|
#endif
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user