Skip to content

Commit d3c3cca

Browse files
committed
libbsd doesn't contain __dead, so bring it back, somewhat
1 parent 8601795 commit d3c3cca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compat.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,10 @@
7979
} while (0)
8080
#endif
8181

82+
/* Minor goo from sys/cdefs.h absent in libbsd */
83+
84+
#ifndef __dead
85+
#define __dead __attribute__((__noreturn__))
86+
#endif
87+
8288
#endif

0 commit comments

Comments
 (0)