diff options
author | rjung <rjung@13f79535-47bb-0310-9956-ffa450edef68> | 2013-05-11 07:43:19 +0000 |
---|---|---|
committer | rjung <rjung@13f79535-47bb-0310-9956-ffa450edef68> | 2013-05-11 07:43:19 +0000 |
commit | da441bce594ce1169251500d4885bd8ed87fb39d (patch) | |
tree | 8f378eea7824309ac696191639b7b35aafdd8659 | |
parent | 44dc9478f8c9d581b4fcf3161b02d72e42529be6 (diff) | |
download | libapr-da441bce594ce1169251500d4885bd8ed87fb39d.tar.gz |
Use correct pthread constant.
Backport of r1481262 from trunk
resp. r1481263 from 1.5.x.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.4.x@1481264 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | threadproc/unix/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/threadproc/unix/thread.c b/threadproc/unix/thread.c index 5639ac706..dde935aa7 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 == 1) + if (state == PTHREAD_CREATE_DETACHED) return APR_DETACH; return APR_NOTDETACH; } |