diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2005-11-21 23:32:00 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2005-11-21 23:32:00 +0000 |
commit | fbe7feaab491773bfd86bafbc3ae676dd9442d83 (patch) | |
tree | 919574dfcca48abed89ea7ecc0b66b81de83891a /gcc/ada | |
parent | b4951359dcb2d279639c8c501c3f191685c783ca (diff) |
2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* socket.c: Add extern int h_errno for rtems since networking header
files are not available at this point in a tool bootstrap. Newlib
only has basic C library header files.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-4_1-branch@107332 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada')
-rw-r--r-- | gcc/ada/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ada/socket.c | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 60ed170784f..8afd38c1b6f 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,9 @@ +2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com> + + * socket.c: Add extern int h_errno for rtems since networking header + files are not available at this point in a tool bootstrap. Newlib + only has basic C library header files. + 2005-11-19 Richard Guenther <rguenther@suse.de> Roger Sayle <roger@eyesopen.com> diff --git a/gcc/ada/socket.c b/gcc/ada/socket.c index d02763a9548..bb79ac30a72 100644 --- a/gcc/ada/socket.c +++ b/gcc/ada/socket.c @@ -189,6 +189,13 @@ __gnat_get_h_errno (void) { } #elif defined(VMS) return errno; +#elif defined(__rtems__) + /* At this stage in the tool build, no networking .h files are available. + Newlib does not provide networking .h files and RTEMS is not built yet. + So we need to explicitly extern h_errno to access it. + */ + extern int h_errno; + return h_errno; #else return h_errno; #endif |