summaryrefslogtreecommitdiff
path: root/test/testoc.c
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2000-12-05 00:14:12 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2000-12-05 00:14:12 +0000
commitad08f785f7a2982d515b9afcd6f208bce854eac4 (patch)
treeadbfef180e89c544622248a1c30b128a1d128613 /test/testoc.c
parentc4a5b6850d283d586d7662ac18356771c38693fd (diff)
downloadapr-ad08f785f7a2982d515b9afcd6f208bce854eac4.tar.gz
Make every test source build - regardless of missing apr features.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60892 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testoc.c')
-rw-r--r--test/testoc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/testoc.c b/test/testoc.c
index 5284e14e9..6c4ac6971 100644
--- a/test/testoc.c
+++ b/test/testoc.c
@@ -64,6 +64,7 @@
#include <unistd.h>
#endif
+#if APR_HAS_OTHER_CHILD
static void ocmaint(int reason, void *data, int status)
{
fprintf(stdout,"[CHILD] Maintenance routine called....");
@@ -82,9 +83,11 @@ static void ocmaint(int reason, void *data, int status)
break;
}
}
+#endif
int main(int argc, char *argv[])
{
+#if APR_HAS_OTHER_CHILD
apr_pool_t *context;
apr_proc_t newproc;
apr_procattr_t *procattr = NULL;
@@ -150,5 +153,9 @@ int main(int argc, char *argv[])
apr_check_other_child();
return 1;
+#else
+ fprintf(stdout, "OC failed!\n");
+ fprintf(stdout, "Other_child is not supported on this platform\n");
+#endif
}