diff options
Diffstat (limited to 'ace/OS.cpp')
-rw-r--r-- | ace/OS.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ace/OS.cpp b/ace/OS.cpp index bd51e9eb87f..7b6b060ea1f 100644 --- a/ace/OS.cpp +++ b/ace/OS.cpp @@ -2596,13 +2596,13 @@ ACE_OS::thr_create (ACE_THR_FUNC func, # if !defined (ACE_LACKS_THREAD_STACK_SIZE) // JCEJ 12/17/96 # if defined (ACE_HAS_PTHREADS_DRAFT4) || defined (ACE_HAS_PTHREADS_DRAFT6) -# if !defined (ACE_HAS_PTHREAD_SETSTACK) - if (::pthread_attr_setstack (&attr, stack, size) != 0) -# else if (::pthread_attr_setstacksize (&attr, size) != 0) -# endif /* ACE_HAS_PTHREAD_SETSTACK */ # else +# if defined (ACE_HAS_PTHREAD_SETSTACK) + if (ACE_ADAPT_RETVAL(pthread_attr_setstack (&attr, stack, size), result) == -1) +# else if (ACE_ADAPT_RETVAL(pthread_attr_setstacksize (&attr, size), result) == -1) +# endif /* ACE_HAS_PTHREAD_SETSTACK */ # endif /* ACE_HAS_PTHREADS_DRAFT4, 6 */ { # if defined (ACE_HAS_PTHREADS_DRAFT4) |