Skip to content

Commit 9cc636a

Browse files
committed
Allow building with mapserver sources (#81)
1 parent 08a8265 commit 9cc636a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/source_mapserver.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@
2727
* DEALINGS IN THE SOFTWARE.
2828
*****************************************************************************/
2929

30-
#ifdef USE_MAPSERVER
3130

3231
#include "mapcache.h"
3332
#include "ezxml.h"
33+
34+
#ifdef USE_MAPSERVER
3435
#include <apr_tables.h>
3536
#include <apr_strings.h>
3637
#ifdef APR_HAS_THREADS
@@ -273,7 +274,11 @@ mapcache_source* mapcache_source_mapserver_create(mapcache_context *ctx)
273274
source->source.query_info = _mapcache_source_mapserver_query;
274275
return (mapcache_source*)source;
275276
}
276-
277+
#else
278+
mapcache_source* mapcache_source_mapserver_create(mapcache_context *ctx)
279+
{
280+
ctx->set_error(ctx, 500, "mapserver source not configured for this build");
281+
}
277282
#endif
278283

279284
/* vim: ts=2 sts=2 et sw=2

0 commit comments

Comments
 (0)