diff options
author | pogma <pogma@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-06 16:14:57 +0000 |
---|---|---|
committer | pogma <pogma@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-06 16:14:57 +0000 |
commit | eafa229b781aa62804b6970f9b5403546bf31bb2 (patch) | |
tree | 4496b65219ab44fb3328c016f518de95d15728ee /fixincludes/inclhack.def | |
parent | 83a875e913027204da79f099c1b8a113958d571b (diff) | |
download | gcc-eafa229b781aa62804b6970f9b5403546bf31bb2.tar.gz |
* inclhack.def (aix_net_if_arp): New fix.
* fixincl.x: Regenerate.
* tests/base/net/if_arp.h [AIX_NET_IF_ARP_CHECK]: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174707 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r-- | fixincludes/inclhack.def | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index a20ab9d79a5..733122608c7 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -369,6 +369,19 @@ fix = { test_text = "#define _Complex_I __I\n"; }; +/* + * net/if_arp.h defines a variable fc_softc instead of adding a + * typedef for the struct on AIX 5.2, 5.3, 6.1 and 7.1 + */ +fix = { + hackname = aix_net_if_arp; + mach = "*-*-aix*"; + files = "net/if_arp.h"; + select = "^struct fc_softc \\{"; + c_fix = format; + c_fix_arg = "typedef struct _fc_softc {"; + test_text = "struct fc_softc {\n int a;\n};"; +}; /* * pthread.h on AIX 4.3.3 tries to define a macro without whitspace |