diff options
| author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-05 14:37:01 +0000 |
|---|---|---|
| committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-05 14:37:01 +0000 |
| commit | 2eac3695c42cfcd80fa4b1a236fcc2c88632755f (patch) | |
| tree | b2e200e02cc243fe04a3644e74e6c1787c48babb /gcc/ada/gsocket.h | |
| parent | 1895102775bb01802591b0eee8fde4dc257a6ad3 (diff) | |
| download | ppe42-gcc-2eac3695c42cfcd80fa4b1a236fcc2c88632755f.tar.gz ppe42-gcc-2eac3695c42cfcd80fa4b1a236fcc2c88632755f.zip | |
2008-08-05 Thomas Quinot <quinot@adacore.com>
* gsocket.h: Make this file includable in a Nucleus environment, which
does not support sockets.
* socket.c: Remove Nucleus-specific hack.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138720 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/gsocket.h')
| -rw-r--r-- | gcc/ada/gsocket.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ada/gsocket.h b/gcc/ada/gsocket.h index 8b8c83808b6..b98da05f9a7 100644 --- a/gcc/ada/gsocket.h +++ b/gcc/ada/gsocket.h @@ -30,6 +30,15 @@ * * ****************************************************************************/ +#if defined(__nucleus__) + +#warning Sockets not supported on this platform +#undef HAVE_SOCKETS + +#else + +#define HAVE_SOCKETS + #ifndef _XOPEN_SOURCE_EXTENDED #define _XOPEN_SOURCE_EXTENDED 1 /* For HP-UX */ @@ -190,3 +199,5 @@ #else # define Has_Sockaddr_Len 0 #endif + +#endif /* defined(__nucleus__) */ |

