Skip to content

Commit

Permalink
FreeBSD: fix world build after 143476c
Browse files Browse the repository at this point in the history
Do not redefine the fallthrough macro when building with libcpp.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Martin Matuska <mm@FreeBSD.org>
Closes openzfs#12880
  • Loading branch information
mmatuska authored and Ryan Moeller committed Jan 18, 2022
1 parent bbdf8f2 commit daabefa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libspl/include/sys/feature_tests.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit daabefa

Please sign in to comment.