8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 23:23:04 +01:00
This commit is contained in:
alexpeshkoff 2008-01-17 16:17:31 +00:00
parent dedd14d516
commit db16316647

View File

@ -497,11 +497,11 @@ int ISC_event_init(event_t* event, int semid, int semnum)
pthread_mutexattr_init(&mattr);
pthread_condattr_init(&cattr);
#if _POSIX_THREAD_PROCESS_SHARED >= 200112L
#ifdef PTHREAD_PROCESS_SHARED
pthread_mutexattr_setpshared(&mattr, PTHREAD_PROCESS_SHARED);
pthread_condattr_setpshared(&cattr, PTHREAD_PROCESS_SHARED);
#else
#error Your system must support THREAD_PROCESS_SHARED to use firebird.
#error Your system must support PTHREAD_PROCESS_SHARED to use firebird.
#endif
pthread_mutex_init(event->event_mutex, &mattr);
pthread_cond_init(event->event_semnum, &cattr);