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_utility.cpp | |
parent | MooseFS is a Fault tolerant, High Available, Highly Performing, Scale-Out, (diff) |
Cleanup patches, a* categories.
Rename them to follow the make makepatch naming, and regenerate them.
With hat: portmgr
Sponsored by: Absolight
Notes
Notes:
svn path=/head/; revision=419133
Diffstat (limited to 'audio/zinf/files/patch-base_src_utility.cpp')
-rw-r--r-- | audio/zinf/files/patch-base_src_utility.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/audio/zinf/files/patch-base_src_utility.cpp b/audio/zinf/files/patch-base_src_utility.cpp new file mode 100644 index 000000000000..f0c73ce64a8e --- /dev/null +++ b/audio/zinf/files/patch-base_src_utility.cpp @@ -0,0 +1,29 @@ +--- base/src/utility.cpp.orig 2004-02-10 18:20:22 UTC ++++ base/src/utility.cpp +@@ -56,7 +56,7 @@ using namespace std; + #include "win32impl.h" + #include "browser.h" + #include <unistd.h> +-#include <wordexp.h> ++#include <glob.h> + #define MKDIR(z) mkdir(z, 0755) + #define _stat stat + #ifndef _S_IFDIR +@@ -825,13 +825,13 @@ SplitPath(const string& path) + + if (subpath.size()) { + #ifndef WIN32 +- wordexp_t result; +- if (wordexp(subpath.c_str(), &result, 0) ==0){ ++ glob_t result; ++ if (glob(subpath.c_str(), 0, NULL, &result) ==0){ + //cerr << "Expanded " << dir << " in "; +- subpath = result.we_wordv[0]; ++ subpath = result.gl_pathv[0]; + //cerr << dir << endl; + } +- wordfree(&result); ++ globfree(&result); + #endif + + dirs.push_back(subpath); |