Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 79209 invoked by uid 500); 19 Aug 2002 16:37:46 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 79198 invoked by uid 500); 19 Aug 2002 16:37:46 -0000 Delivered-To: apmail-apr-util-cvs@apache.org Date: 19 Aug 2002 16:37:45 -0000 Message-ID: <20020819163745.64693.qmail@icarus.apache.org> From: ianh@apache.org To: apr-util-cvs@apache.org Subject: cvs commit: apr-util/misc apr_queue.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ianh 2002/08/19 09:37:45 Modified: include apr_queue.h misc apr_queue.c Log: if you don't have threads, you can't use this. Revision Changes Path 1.2 +2 -0 apr-util/include/apr_queue.h Index: apr_queue.h =================================================================== RCS file: /home/cvs/apr-util/include/apr_queue.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- apr_queue.h 18 Aug 2002 20:22:28 -0000 1.1 +++ apr_queue.h 19 Aug 2002 16:37:44 -0000 1.2 @@ -58,6 +58,7 @@ #ifndef APR_QUEUE_H #define APR_QUEUE_H +#if APR_HAS_THREADS /** * @file apr_queue.h * @brief Thread Safe FIFO bounded queue @@ -152,4 +153,5 @@ */ apr_status_t apr_queue_term(apr_queue_t *queue); +#endif /* APR_HAS_THREADS */ #endif /* APRQUEUE_H */ 1.3 +4 -0 apr-util/misc/apr_queue.c Index: apr_queue.c =================================================================== RCS file: /home/cvs/apr-util/misc/apr_queue.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- apr_queue.c 18 Aug 2002 20:41:08 -0000 1.2 +++ apr_queue.c 19 Aug 2002 16:37:45 -0000 1.3 @@ -65,12 +65,14 @@ #include #endif +#include "apu.h" #include "apr_portable.h" #include "apr_thread_mutex.h" #include "apr_thread_cond.h" #include "apr_errno.h" #include "apr_queue.h" +#if APR_HAS_THREADS /* * define this to get debug messages * @@ -439,3 +441,5 @@ } return apr_queue_interrupt_all(queue); } + +#endif /* APR_HAS_THREADS */