Add a workaround for systems without wordexp (e.g. ulibc).
*
*/
+#include <config.h>
+
+#ifdef HAVE_WORDEXP_H
#include <string.h>
#include <errno.h>
#include <wordexp.h>
wordfree(&we);
return 0;
}
+
+#else /* !HAVE_WORDEXP_H */
+/* just copy the string - would be nicer to expand by ourselves, though... */
+int snd_user_file(const char *file, char **result)
+{
+ *result = strdup(file);
+ if (! *result)
+ return -ENOMEM;
+ return 0;
+}
+#endif /* HAVE_WORDEXP_H */