summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>2013-05-11 07:51:20 +0000
committerrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>2013-05-11 07:51:20 +0000
commitdb2743c901dc097627d9584bc122c1f6f3ef30d9 (patch)
tree231071c1f446b16f4d4f2ef0f593861383a69d77
parentda441bce594ce1169251500d4885bd8ed87fb39d (diff)
downloadlibapr-db2743c901dc097627d9584bc122c1f6f3ef30d9.tar.gz
Followup on r1481264: use already existing
platform independent macro instead of pthread define. Backport of r1481265 from trunk resp. r1481266 from 1.5.x. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.4.x@1481267 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--threadproc/unix/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/threadproc/unix/thread.c b/threadproc/unix/thread.c
index dde935aa7..6d060be55 100644
--- a/threadproc/unix/thread.c
+++ b/threadproc/unix/thread.c
@@ -96,7 +96,7 @@ APR_DECLARE(apr_status_t) apr_threadattr_detach_get(apr_threadattr_t *attr)
#else
pthread_attr_getdetachstate(&attr->attr, &state);
#endif
- if (state == PTHREAD_CREATE_DETACHED)
+ if (state == DETACH_ARG(1))
return APR_DETACH;
return APR_NOTDETACH;
}