From 759bfb144806f9fe3aa475ff00b44b52350a45eb Mon Sep 17 00:00:00 2001
From: kristerw <kristerw@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed, 25 Jul 2007 23:51:47 +0000
Subject: 2007-07-24  Krister Walfridsson  <cato@df.lth.se>

	PR target/30058
	* inclhack.def (netbsd_c99_inline_2): New.
	* fixincl.x: Regenerate.
	* tests/base/signal.h: Update.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126937 138bc75d-0d04-0410-961f-82ee72b054a4
---
 fixincludes/inclhack.def | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

(limited to 'fixincludes/inclhack.def')

diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def
index fbc1b2a62d4..f7fbd8ce8aa 100644
--- a/fixincludes/inclhack.def
+++ b/fixincludes/inclhack.def
@@ -2608,6 +2608,25 @@ fix = {
 };
 
 
+fix = {
+    hackname  = netbsd_c99_inline_2;
+    mach      = *-*-netbsd*;
+    files     = signal.h;
+    select    = "#define _SIGINLINE extern __inline";
+
+    c_fix     = format;
+    c_fix_arg = <<- _EOArg_
+	#ifdef __GNUC_STDC_INLINE__
+	#define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline
+	#else
+	%0
+	#endif
+	_EOArg_;
+
+    test_text = "#define _SIGINLINE extern __inline";
+};
+
+
 /*
  * NetBSD has a semicolon after the ending '}' for some extern "C".
  */
-- 
cgit v1.2.1

