26 lines
474 B
Text
26 lines
474 B
Text
Index: kernel/yosys.cc
|
|
--- kernel/yosys.cc.orig
|
|
+++ kernel/yosys.cc
|
|
@@ -69,6 +69,10 @@
|
|
#endif
|
|
#endif
|
|
|
|
+#ifdef __OpenBSD__
|
|
+# include <sys/wait.h>
|
|
+#endif
|
|
+
|
|
#include <limits.h>
|
|
#include <errno.h>
|
|
|
|
@@ -787,6 +791,11 @@ std::string proc_self_dirname()
|
|
path.assign(buffer, buflen);
|
|
free(buffer);
|
|
return path;
|
|
+}
|
|
+#elif defined(__OpenBSD__)
|
|
+std::string proc_self_dirname()
|
|
+{
|
|
+ return "${PREFIX}/bin/";
|
|
}
|
|
#elif defined(__APPLE__)
|
|
std::string proc_self_dirname()
|