diff options
author | brianp <brianp@13f79535-47bb-0310-9956-ffa450edef68> | 2002-07-02 23:59:26 +0000 |
---|---|---|
committer | brianp <brianp@13f79535-47bb-0310-9956-ffa450edef68> | 2002-07-02 23:59:26 +0000 |
commit | da98606608ec0b9e21c22f98b94fc8c99a0ac9df (patch) | |
tree | 9fad1e3049a6e9ff67fc010065eee4aeb8c3fdfa /file_io | |
parent | 37afde7501fd09e29e3bcc3928d4238d8519f859 (diff) | |
download | libapr-da98606608ec0b9e21c22f98b94fc8c99a0ac9df.tar.gz |
Added ifdefs for platforms without threads
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63554 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r-- | file_io/unix/filedup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/file_io/unix/filedup.c b/file_io/unix/filedup.c index fb4c6d027..aa21a77f6 100644 --- a/file_io/unix/filedup.c +++ b/file_io/unix/filedup.c @@ -163,11 +163,13 @@ APR_DECLARE(apr_status_t) apr_file_setaside(apr_file_t **new_file, else { memcpy((*new_file)->buffer, old_file->buffer, old_file->dataRead); } +#if APR_HAS_THREADS if (old_file->thlock) { apr_thread_mutex_create(&((*new_file)->thlock), APR_THREAD_MUTEX_DEFAULT, p); apr_thread_mutex_destroy(old_file->thlock); } +#endif /* APR_HAS_THREADS */ } if (old_file->fname) { (*new_file)->fname = apr_pstrdup(p, old_file->fname); |