$OpenBSD: patch-src_broxygen_Manager_cc,v 1.4 2016/11/19 12:02:37 ajacoutot Exp $

Bodge around wordexp requirement; won't expand ~ in the path

--- src/broxygen/Manager.cc.orig	Wed Nov 16 23:53:44 2016
+++ src/broxygen/Manager.cc	Thu Nov 17 07:43:54 2016
@@ -6,7 +6,10 @@
 
 #include <utility>
 #include <cstdlib>
+
+#if !defined(__OpenBSD__)
 #include <wordexp.h>
+#endif
 
 using namespace broxygen;
 using namespace std;
@@ -66,17 +69,21 @@ Manager::Manager(const string& arg_config, const strin
 
 	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]);
 	else
 		{
 		reporter->InternalWarning("odd expansion of path: %s\n", path.c_str());
+#endif
 		path_to_bro = find_file(bro_command, path);
+#if !defined(__OpenBSD__)
 		}
+#endif
 
 	struct stat s;
 
