diff options
author | Jeff Trawick <trawick@apache.org> | 2001-03-14 15:56:44 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2001-03-14 15:56:44 +0000 |
commit | 05c72b4fc3dfed8a60383395cd382d1c4d5ea9a2 (patch) | |
tree | 3ec83f5d45ce4438d050d3d0d3bb3126e678acd7 /test/testthread.c | |
parent | 66ab106621bc4710f9e38c2d33aa00d537104985 (diff) | |
download | apr-05c72b4fc3dfed8a60383395cd382d1c4d5ea9a2.tar.gz |
Get testthread to build and run appropriately when APR has no thread
support.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61360 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testthread.c')
-rw-r--r-- | test/testthread.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/testthread.c b/test/testthread.c index 852f2fa5d..a17dd5cf5 100644 --- a/test/testthread.c +++ b/test/testthread.c @@ -62,6 +62,15 @@ #include <unistd.h> #endif +#if !APR_HAS_THREADS +int main(void) +{ + fprintf(stderr, + "This program won't work on this platform because there is no " + "support for threads.\n"); + return 0; +} +#else /* !APR_HAS_THREADS */ void * APR_THREAD_FUNC thread_func1(void *data); void * APR_THREAD_FUNC thread_func2(void *data); @@ -175,3 +184,5 @@ int main(void) #endif return 1; } + +#endif /* !APR_HAS_THREADS */ |