summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2024-09-06 06:31:12 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2024-09-06 06:31:12 +0000
commit7a386a1e74f82282bfc38db305fb8047ecb8657f (patch)
treed28f31d5e3596ca61e502c5aab10a3f85580cb88 /sbin
parent865701f169931a035172e3415f0262885f024eb7 (diff)
Repair build with gcc.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/unwind/libunbound/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/unwind/libunbound/config.h b/sbin/unwind/libunbound/config.h
index bfa7d8c0821..25bb0ba97c6 100644
--- a/sbin/unwind/libunbound/config.h
+++ b/sbin/unwind/libunbound/config.h
@@ -2,7 +2,11 @@
/* config.h.in. Generated from configure.ac by autoheader. */
/* apply the fallthrough attribute. */
+#if defined(__clang__)
#define ATTR_FALLTHROUGH __attribute__((fallthrough));
+#else
+#define ATTR_FALLTHROUGH
+#endif
/* apply the noreturn attribute to a function that exits the program */
#define ATTR_NORETURN __attribute__((__noreturn__))