You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by rj...@apache.org on 2013/05/11 09:48:12 UTC

svn commit: r1481265 - /apr/apr/trunk/threadproc/unix/thread.c

Author: rjung
Date: Sat May 11 07:48:11 2013
New Revision: 1481265

URL: http://svn.apache.org/r1481265
Log:
Followup on r1481262: use already existing
platform independent macro instead of pthread
define.

Modified:
    apr/apr/trunk/threadproc/unix/thread.c

Modified: apr/apr/trunk/threadproc/unix/thread.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/threadproc/unix/thread.c?rev=1481265&r1=1481264&r2=1481265&view=diff
==============================================================================
--- apr/apr/trunk/threadproc/unix/thread.c (original)
+++ apr/apr/trunk/threadproc/unix/thread.c Sat May 11 07:48:11 2013
@@ -96,7 +96,7 @@ APR_DECLARE(apr_status_t) apr_threadattr
 #else
     pthread_attr_getdetachstate(&attr->attr, &state);
 #endif
-    if (state == PTHREAD_CREATE_DETACHED)
+    if (state == DETACH_ARG(1))
         return APR_DETACH;
     return APR_NOTDETACH;
 }