diff options
author | Martin Matuška <[email protected]> | 2021-12-20 23:28:43 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-12-20 14:28:43 -0800 |
commit | 20f5c5b9128771c212b359b805f653851962498d (patch) | |
tree | 104bff54727b78fe53c88a919218d20b6df406ad /lib/libspl | |
parent | 8623bd962da29716bab6bc0f0a4ef219d3151dd8 (diff) |
FreeBSD: fix world build after 143476ce8
Do not redefine the fallthrough macro when building with libcpp.
Reviewed-by: Ryan Moeller <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Martin Matuska <[email protected]>
Closes #12880
Diffstat (limited to 'lib/libspl')
-rw-r--r-- | lib/libspl/include/sys/feature_tests.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libspl/include/sys/feature_tests.h b/lib/libspl/include/sys/feature_tests.h index a36fd7b8c..c9564b2c3 100644 --- a/lib/libspl/include/sys/feature_tests.h +++ b/lib/libspl/include/sys/feature_tests.h @@ -30,7 +30,7 @@ #define ____cacheline_aligned #define __NORETURN __attribute__((__noreturn__)) -#if !defined(fallthrough) +#if !defined(fallthrough) && !defined(_LIBCPP_VERSION) #if defined(HAVE_IMPLICIT_FALLTHROUGH) #define fallthrough __attribute__((__fallthrough__)) #else |