diff options
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r-- | fixincludes/inclhack.def | 19 |
1 files changed, 19 insertions, 0 deletions
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". */ |