1
1

fixed build without thread support

This commit was SVN r29145.
Этот коммит содержится в:
Alex Margolin 2013-09-06 19:03:19 +00:00
родитель c53b0890cf
Коммит 50a3c01a0f
3 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -11,6 +11,7 @@
#include "opal_config.h"
#include "opal/constants.h"
#include <time.h>
#include <string.h>
#include <sys/types.h>
#ifdef HAVE_LIMITS_H

Просмотреть файл

@ -30,6 +30,8 @@
#include <unistd.h>
#endif
#include <errno.h>
#include "opal/class/opal_list.h"
#include "opal/class/opal_pointer_array.h"

Просмотреть файл

@ -37,14 +37,14 @@ OBJ_CLASS_INSTANCE(opal_thread_t,
static void opal_thread_construct(opal_thread_t *t)
{
t->t_run = 0;
#ifdef OPAL_HAVE_POSIX_THREADS
#if OPAL_HAVE_POSIX_THREADS
t->t_handle = (pthread_t) -1;
#elif OPAL_HAVE_SOLARIS_THREADS
t->t_handle = (thread_t) -1;
#endif
}
#ifdef OPAL_HAVE_POSIX_THREADS
#if OPAL_HAVE_POSIX_THREADS
/************************************************************************
* POSIX threads