diff options
author | Nathanael Nerode <neroden@twcny.rr.com> | 2003-08-25 21:54:14 +0000 |
---|---|---|
committer | Nathanael Nerode <neroden@gcc.gnu.org> | 2003-08-25 21:54:14 +0000 |
commit | 1d10941673c5b7592235262a11ef1280121914c7 (patch) | |
tree | a7bd019838ab732239e4df3abcb53fb2bd6cadc7 /gcc/fixinc/inclhack.def | |
parent | dc5c3188aa4570a39f45540a5e2c823aebb38ff3 (diff) | |
download | gcc-1d10941673c5b7592235262a11ef1280121914c7.zip gcc-1d10941673c5b7592235262a11ef1280121914c7.tar.gz gcc-1d10941673c5b7592235262a11ef1280121914c7.tar.bz2 |
inclhack.def (svr4_sighandler_type): New fix, ported from fixinc.svr4.
* fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
from fixinc.svr4.
* fixinc/fixincl.x: Regenerate.
* fixinc/tests/base/sys/signal.h: Regenerate.
From-SVN: r70786
Diffstat (limited to 'gcc/fixinc/inclhack.def')
-rw-r--r-- | gcc/fixinc/inclhack.def | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def index 8dd5f1c..4eade8c 100644 --- a/gcc/fixinc/inclhack.def +++ b/gcc/fixinc/inclhack.def @@ -2978,6 +2978,22 @@ fix = { }; #endif + +/* + * Correct types for signal handler constants like SIG_DFL; they might be + * void (*) (), and should be void (*) (int). C++ doesn't like the + * old style. + */ +fix = { + hackname = svr4_sighandler_type; + files = sys/signal.h; + select = 'void *\(\*\)\(\)'; + c_fix = format; + c_fix_arg = "void (*)(int)"; + test_text = "#define SIG_DFL (void(*)())0\n" + "#define SIG_IGN (void (*)())0\n"; +}; + /* * Put storage class at start of decl, to avoid warning. */ |