artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2a5716
)
Repair build with gcc.
author
miod
<miod@openbsd.org>
Fri, 6 Sep 2024 06:31:11 +0000
(06:31 +0000)
committer
miod
<miod@openbsd.org>
Fri, 6 Sep 2024 06:31:11 +0000
(06:31 +0000)
sbin/unwind/libunbound/config.h
patch
|
blob
|
history
diff --git
a/sbin/unwind/libunbound/config.h
b/sbin/unwind/libunbound/config.h
index
bfa7d8c
..
25bb0ba
100644
(file)
--- 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__))