diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2016-07-26 16:51:15 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2016-07-26 16:51:15 +0000 |
commit | 9fa9eb9ac7bf1d3de825ee25a8f0ae81b7b77896 (patch) | |
tree | 9b071a8105704e992946dcd6b801e9fcb7635142 /audio/zinf/files/patch-base_src_registrar.cpp | |
parent | 5a20e7990eb544509174d617d359bf0d4ac64737 (diff) |
Notes
Diffstat (limited to 'audio/zinf/files/patch-base_src_registrar.cpp')
-rw-r--r-- | audio/zinf/files/patch-base_src_registrar.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/audio/zinf/files/patch-base_src_registrar.cpp b/audio/zinf/files/patch-base_src_registrar.cpp new file mode 100644 index 000000000000..7622e072636e --- /dev/null +++ b/audio/zinf/files/patch-base_src_registrar.cpp @@ -0,0 +1,29 @@ +--- base/src/registrar.cpp.orig 2003-09-16 17:34:54 UTC ++++ base/src/registrar.cpp +@@ -35,7 +35,7 @@ ________________________________________ + #include <stdlib.h> + #include <unistd.h> + #include <set> +-#include <wordexp.h> ++#include <glob.h> + #endif // WIN32 + + #include <stdio.h> +@@ -86,13 +86,13 @@ InitializeRegistry(Registry* registry, P + dir = *di++; + + #ifndef WIN32 +- wordexp_t result; +- if (wordexp(dir.c_str(), &result, 0) ==0){ ++ glob_t result; ++ if (glob(dir.c_str(), 0, NULL, &result) ==0){ + //cerr << "Expanded " << dir << " in "; +- dir = result.we_wordv[0]; ++ dir = result.gl_pathv[0]; + //cerr << dir << endl; + } +- wordfree(&result); ++ globfree(&result); + + #if 0 + if (dir[0] == '~') { |