aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/log.cc
diff options
context:
space:
mode:
authorChristian Krämer <uddka@student.kit.edu>2018-05-05 13:02:44 +0200
committerClifford Wolf <clifford@clifford.at>2018-05-13 13:08:26 +0200
commitc1ecb1b2f1427e5d8616c9177c6962ebf1449a47 (patch)
treef92b046759de2cc9ab0ff68ab2e1d850ae4f7de3 /kernel/log.cc
parent1167538d265b634d6d4d825e9d92d2211f7beee9 (diff)
downloadyosys-c1ecb1b2f1427e5d8616c9177c6962ebf1449a47.tar.gz
yosys-c1ecb1b2f1427e5d8616c9177c6962ebf1449a47.tar.bz2
yosys-c1ecb1b2f1427e5d8616c9177c6962ebf1449a47.zip
Add "#ifdef __FreeBSD__"
(Re-commit e3575a8 with corrected author field)
Diffstat (limited to 'kernel/log.cc')
-rw-r--r--kernel/log.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/log.cc b/kernel/log.cc
index ff171f3e6..6d562b9e6 100644
--- a/kernel/log.cc
+++ b/kernel/log.cc
@@ -25,7 +25,7 @@
# include <sys/time.h>
#endif
-#ifdef __linux__
+#if defined(__linux__) || defined(__FreeBSD__)
# include <dlfcn.h>
#endif
@@ -392,7 +392,7 @@ void log_pop()
log_flush();
}
-#if defined(__linux__) && defined(YOSYS_ENABLE_PLUGINS)
+#if (defined(__linux__) || defined(__FreeBSD__)) && defined(YOSYS_ENABLE_PLUGINS)
void log_backtrace(const char *prefix, int levels)
{
if (levels <= 0) return;
@@ -587,7 +587,7 @@ void log_wire(RTLIL::Wire *wire, std::string indent)
// ---------------------------------------------------
// This is the magic behind the code coverage counters
// ---------------------------------------------------
-#if defined(YOSYS_ENABLE_COVER) && defined(__linux__)
+#if defined(YOSYS_ENABLE_COVER) && (defined(__linux__) || defined(__FreeBSD__))
dict<std::string, std::pair<std::string, int>> extra_coverage_data;