trawick 2002/10/07 09:31:59
Modified: test testreslist.c
Log:
don't break the build when APR doesn't have thread support
Revision Changes Path
1.2 +11 -0 apr-util/test/testreslist.c
Index: testreslist.c
===================================================================
RCS file: /home/cvs/apr-util/test/testreslist.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- testreslist.c 5 Aug 2002 03:25:40 -0000 1.1
+++ testreslist.c 7 Oct 2002 16:31:59 -0000 1.2
@@ -57,6 +57,16 @@
#include "apr_reslist.h"
#include "apr_thread_proc.h"
+#if !APR_HAS_THREADS
+
+int main(void)
+{
+ fprintf(stderr, "this program requires APR thread support\n");
+ return 0;
+}
+
+#else
+
#define RESLIST_MIN 3
#define RESLIST_SMAX 10
#define RESLIST_HMAX 20
@@ -257,3 +267,4 @@
return 0;
}
+#endif /* APR_HAS_THREADS */