diff options
author | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2003-10-29 16:30:15 +0000 |
---|---|---|
committer | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2003-10-29 16:30:15 +0000 |
commit | 93957d4d150edd6fbcf477379be34c516399edcf (patch) | |
tree | e954055ac344cc23ce431764f61ff64b495918e7 /test | |
parent | a144d44dfa84063f4020bd226bc4cee027b93a1a (diff) | |
download | libapr-93957d4d150edd6fbcf477379be34c516399edcf.tar.gz |
* testdso.c: Fix build when --disable-dso is used.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64699 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r-- | test/testdso.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/testdso.c b/test/testdso.c index 468cf5eaf..dd69a7d59 100644 --- a/test/testdso.c +++ b/test/testdso.c @@ -64,6 +64,8 @@ #include <unistd.h> #endif +#if APR_HAS_DSO + #ifdef NETWARE # define MOD_NAME "mod_test.nlm" #elif defined(BEOS) || defined(WIN32) @@ -257,10 +259,13 @@ static void test_load_notthere(CuTest *tc) CuAssertPtrNotNull(tc, h); } +#endif /* APR_HAS_DSO */ + CuSuite *testdso(void) { CuSuite *suite = CuSuiteNew("DSO"); +#if APR_HAS_DSO modname = apr_pcalloc(p, 256); getcwd(modname, 256); modname = apr_pstrcat(p, modname, "/", MOD_NAME, NULL); @@ -282,6 +287,7 @@ CuSuite *testdso(void) #endif SUITE_ADD_TEST(suite, test_load_notthere); +#endif /* APR_HAS_DSO */ return suite; } |