summaryrefslogtreecommitdiff
path: root/extractor/extract.cc
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2014-01-20 20:00:16 -0500
committerChris Dyer <redpony@gmail.com>2014-01-20 20:00:16 -0500
commitc67fceb6d047f33d6bd450a086d7240cf0bad6ce (patch)
tree52501cff1567979926225333bbce140aefb1e509 /extractor/extract.cc
parent1915f029aa02f3528dafcd7b80a62a9c890b462b (diff)
fix for build
Diffstat (limited to 'extractor/extract.cc')
-rw-r--r--extractor/extract.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/extractor/extract.cc b/extractor/extract.cc
index 387cbe9b..e5b6f6ff 100644
--- a/extractor/extract.cc
+++ b/extractor/extract.cc
@@ -8,7 +8,11 @@
#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
#include <boost/program_options/variables_map.hpp>
-#include <omp.h>
+#if HAVE_OPEN_MP
+ #include <omp.h>
+#else
+ const unsigned omp_get_num_threads() { return 1; }
+#endif
#include "alignment.h"
#include "data_array.h"