diff options
author | Joe Orton <jorton@apache.org> | 2003-12-10 16:27:40 +0000 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2003-12-10 16:27:40 +0000 |
commit | b83b32f9e76789c3a206ccba030f48ec3f8c2857 (patch) | |
tree | f3a408daeee2bf08f1bb3fa1f0fefa5721d3aed3 /threadproc/unix | |
parent | 8128ef22655e99d7a792fbd1c860db1b2a9e2e35 (diff) | |
download | apr-b83b32f9e76789c3a206ccba030f48ec3f8c2857.tar.gz |
* threadproc/unix/threadpriv.c (apr_threadkey_private_delete):
Define function regardless of HAVE_PTHREAD_KEY_DELETE.
PR: 23837
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64833 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/unix')
-rw-r--r-- | threadproc/unix/threadpriv.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/threadproc/unix/threadpriv.c b/threadproc/unix/threadpriv.c index 4416c7a40..056f509d8 100644 --- a/threadproc/unix/threadpriv.c +++ b/threadproc/unix/threadpriv.c @@ -100,9 +100,9 @@ APR_DECLARE(apr_status_t) apr_threadkey_private_set(void *priv, } } -#ifdef HAVE_PTHREAD_KEY_DELETE APR_DECLARE(apr_status_t) apr_threadkey_private_delete(apr_threadkey_t *key) { +#ifdef HAVE_PTHREAD_KEY_DELETE apr_status_t stat; if ((stat = pthread_key_delete(key->key)) == 0) { @@ -110,8 +110,10 @@ APR_DECLARE(apr_status_t) apr_threadkey_private_delete(apr_threadkey_t *key) } return stat; -} +#else + return APR_ENOTIMPL; #endif +} APR_DECLARE(apr_status_t) apr_threadkey_data_get(void **data, const char *key, apr_threadkey_t *threadkey) |