$OpenBSD$

https://github.com/Morgan-Stanley/hobbes/issues/28

Index: include/hobbes/eval/jitcc.H
--- include/hobbes/eval/jitcc.H.orig
+++ include/hobbes/eval/jitcc.H
@@ -2,6 +2,10 @@
 #ifndef HOBBES_EVAL_JITCC_HPP_INCLUDED
 #define HOBBES_EVAL_JITCC_HPP_INCLUDED
 
+#include "llvm/IR/IRBuilder.h"
+#include "llvm/IR/LegacyPassManager.h"
+
+
 #include <hobbes/lang/expr.H>
 #include <hobbes/lang/type.H>
 #include <hobbes/util/region.H>
@@ -120,7 +124,7 @@ class jitcc { (private)
   typedef std::vector<llvm::Module*> Modules;
   Modules modules;
 
-#if LLVM_VERSION_MINOR == 6 || LLVM_VERSION_MINOR == 7 || LLVM_VERSION_MINOR == 8
+#if LLVM_VERSION_MINOR == 6 || LLVM_VERSION_MINOR == 7 || LLVM_VERSION_MINOR == 8 || LLVM_VERSION_MAJOR == 4
   llvm::legacy::PassManager* mpm;
 
   // the set of allocated execution engines (each will own a finalized module from the set of modules)
