File: 0004-Define-__dead-for-GNU-GCC.patch

package info (click to toggle)
bsdgames 2.17-29
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 11,172 kB
  • sloc: ansic: 80,217; sh: 1,509; cpp: 1,154; yacc: 321; lex: 75; makefile: 63; sed: 13; csh: 5
file content (20 lines) | stat: -rw-r--r-- 530 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Tobias Quathamer <toddy@debian.org>
Date: Thu, 16 Feb 2012 11:26:51 +0100
Subject: Define __dead for GNU GCC

---
 include/sys/cdefs.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h
index 138eaa8..f6e87c2 100644
--- a/include/sys/cdefs.h
+++ b/include/sys/cdefs.h
@@ -40,3 +40,7 @@
 #ifndef __COPYRIGHT
 #define __COPYRIGHT(arg)	static const char copyright[] __attribute__((__unused__)) = arg
 #endif
+
+#ifndef __dead
+#define	__dead	__attribute__((__noreturn__))
+#endif