diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-06 08:28:35 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-06 08:28:35 +0000 |
commit | d4a8ec92ecf942be90318c71c42710aadb8d25ad (patch) | |
tree | bba0202d063e46f1ca52ae47268984f42a318896 /fixincludes/inclhack.def | |
parent | 3c32a9aceaedf224e9ead3f246397cbd2419b100 (diff) | |
download | gcc-d4a8ec92ecf942be90318c71c42710aadb8d25ad.tar.gz |
2013-12-06 Richard Biener <rguenther@suse.de>
* inclhack.def (suse_linux_vt_cxx): New fix for linux/vt.h
being not compatible with C++.
* tests/base/linux/vt.h: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205729 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r-- | fixincludes/inclhack.def | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index 996356a3930..11ac9448c5b 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -4066,6 +4066,20 @@ fix = { }; /* + * Linux kernel's vt.h breaks C++ + */ +fix = { + hackname = suse_linux_vt_cxx; + files = linux/vt.h; + + select = "^[ \t]*unsigned int new;"; + c_fix = format; + c_fix_arg = "unsigned int newev;"; + + test_text = " unsigned int new; /* New console (if changing) */"; +}; + +/* * Disable apparent native compiler optimization cruft in SVR4.2 <string.h> * that is visible to any ANSI compiler using this include. Simply * delete the lines that #define some string functions to internal forms. |