diff --git a/src/broxygen/Manager.cc b/src/broxygen/Manager.cc index 7e2a0067d5..32a0b7d924 100644 --- a/src/broxygen/Manager.cc +++ b/src/broxygen/Manager.cc @@ -6,7 +6,9 @@ #include #include +#if !defined(__OpenBSD__) #include +#endif using namespace broxygen; using namespace std; @@ -66,9 +68,11 @@ Manager::Manager(const string& arg_config, const string& bro_command) const char* env_path = getenv("PATH"); string path = env_path ? string(env_path) + ":." : "."; + string path_to_bro; + +#if !defined(__OpenBSD__) wordexp_t expanded_path; wordexp(path.c_str(), &expanded_path, WRDE_NOCMD); - string path_to_bro; if ( expanded_path.we_wordc == 1 ) path_to_bro = find_file(bro_command, expanded_path.we_wordv[0]); @@ -77,6 +81,9 @@ Manager::Manager(const string& arg_config, const string& bro_command) reporter->InternalWarning("odd expansion of path: %s\n", path.c_str()); path_to_bro = find_file(bro_command, path); } +#else + path_to_bro = find_file(bro_command, path); +#endif struct stat s;