From fcd10838f29aba961c8461e1c235f1c7508c373a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 27 Mar 2011 06:06:42 +0000 Subject: Build lv2config on systems without wordexp. --- core.lv2/lv2config.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'core.lv2/lv2config.c') diff --git a/core.lv2/lv2config.c b/core.lv2/lv2config.c index 8764f23..51e0df5 100644 --- a/core.lv2/lv2config.c +++ b/core.lv2/lv2config.c @@ -34,12 +34,15 @@ #include #include #include -#include #include "serd-0.1.0.h" #include "lv2-config.h" +#ifdef HAVE_WORDEXP +#include +#endif + #define NS_RDF "http://www.w3.org/1999/02/22-rdf-syntax-ns#" #define NS_LV2 "http://lv2plug.in/ns/lv2core#" @@ -168,6 +171,7 @@ discover_manifest(World* world, const char* uri) static char* expand(const char* path) { +#ifdef HAVE_WORDEXP char* ret = NULL; wordexp_t p; @@ -184,6 +188,9 @@ expand(const char* path) } wordfree(&p); +#else + char* ret = strdup(path); +#endif return ret; } -- cgit v1.2.1