diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-02-23 16:37:20 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-02-23 16:37:20 +0000 |
commit | 6e0613db4999dfb6aa2c0aa273c041374ef36538 (patch) | |
tree | 0bfdc646a81d4b882aaa654afa1875fc7d4d49a5 /gcc/ada/s-oscons-tmplt.c | |
parent | 362676499c08b5b814947261088c1a614984efb1 (diff) | |
download | gcc-6e0613db4999dfb6aa2c0aa273c041374ef36538.tar.gz |
* s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144382 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/s-oscons-tmplt.c')
-rw-r--r-- | gcc/ada/s-oscons-tmplt.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c index 36a6b8eb1bc..8298f7526de 100644 --- a/gcc/ada/s-oscons-tmplt.c +++ b/gcc/ada/s-oscons-tmplt.c @@ -7,7 +7,7 @@ -- -- -- S p e c -- -- -- --- Copyright (C) 2000-2008, Free Software Foundation, Inc. -- +-- Copyright (C) 2000-2009, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -837,6 +837,15 @@ CND(AF_INET, "IPv4 address family") # undef AF_INET6 #endif +/** + ** Tru64 UNIX V4.0F defines AF_INET6 without IPv6 support, specificially + ** without struct sockaddr_in6. We use _SS_MAXSIZE (used for the definition + ** of struct sockaddr_storage on Tru64 UNIX V5.1) to detect this. + **/ +#if defined(__osf__) && !defined(_SS_MAXSIZE) +# undef AF_INET6 +#endif + #ifndef AF_INET6 # define AF_INET6 -1 #else |