diff options
author | Johnny Sorocil <propaliidealist@gmail.com> | 2018-05-05 13:02:44 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-05-05 13:02:44 +0200 |
commit | e3575a86c525f2511902e7022893c3923ba8093e (patch) | |
tree | 0c0a7c7578fcc9c220a2b3c29f6c5dcaccda3e98 /kernel/log.h | |
parent | 145c685de03a0b5f70a3aa821ea1bd221c31d993 (diff) | |
download | yosys-e3575a86c525f2511902e7022893c3923ba8093e.tar.gz yosys-e3575a86c525f2511902e7022893c3923ba8093e.tar.bz2 yosys-e3575a86c525f2511902e7022893c3923ba8093e.zip |
Add "#ifdef __FreeBSD__"
Diffstat (limited to 'kernel/log.h')
-rw-r--r-- | kernel/log.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/log.h b/kernel/log.h index 457229c87..a2aacfd4d 100644 --- a/kernel/log.h +++ b/kernel/log.h @@ -114,7 +114,7 @@ static inline void log_assert_worker(bool cond, const char *expr, const char *fi // 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__)) #define cover(_id) do { \ static CoverData __d __attribute__((section("yosys_cover_list"), aligned(1), used)) = { __FILE__, __FUNCTION__, _id, __LINE__, 0 }; \ |