brianp 2002/07/02 16:59:26
Modified: file_io/unix filedup.c
Log:
Added ifdefs for platforms without threads
Revision Changes Path
1.50 +2 -0 apr/file_io/unix/filedup.c
Index: filedup.c
===================================================================
RCS file: /home/cvs/apr/file_io/unix/filedup.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- filedup.c 2 Jul 2002 23:40:37 -0000 1.49
+++ filedup.c 2 Jul 2002 23:59:26 -0000 1.50
@@ -163,11 +163,13 @@
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);