jorton 2003/10/29 08:30:15
Modified: test testdso.c
Log:
* testdso.c: Fix build when --disable-dso is used.
Revision Changes Path
1.40 +6 -0 apr/test/testdso.c
Index: testdso.c
===================================================================
RCS file: /home/cvs/apr/test/testdso.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -u -r1.39 -r1.40
--- testdso.c 28 May 2003 18:24:13 -0000 1.39
+++ testdso.c 29 Oct 2003 16:30:15 -0000 1.40
@@ -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 @@
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 @@
#endif
SUITE_ADD_TEST(suite, test_load_notthere);
+#endif /* APR_HAS_DSO */
return suite;
}