diff options
author | Thomas Quinot <quinot@adacore.com> | 2014-02-24 16:59:24 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2014-02-24 17:59:24 +0100 |
commit | 47752af2e8442f1141f1025e58f9dcb76cdd7422 (patch) | |
tree | 2f2116a515aa85c2d441a1bd3a95f391271295e9 /gcc/ada/g-socthi.ads | |
parent | 1b31321b1834aac1bd455e5a457145827dee562f (diff) | |
download | gcc-47752af2e8442f1141f1025e58f9dcb76cdd7422.zip gcc-47752af2e8442f1141f1025e58f9dcb76cdd7422.tar.gz gcc-47752af2e8442f1141f1025e58f9dcb76cdd7422.tar.bz2 |
g-stheme.adb, [...] (Host_Error_Message): Return a string...
2014-02-24 Thomas Quinot <quinot@adacore.com>
* g-stheme.adb, g-socthi-vms.adb, g-socthi-vms.ads,
g-socthi-vxworks.adb, g-socthi-vxworks.ads, g-stseme.adb,
g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi.adb,
g-socthi.ads, g-socket.adb (Host_Error_Message): Return a string, not
a chars_ptr, because on Windows this is a renaming of
Socket_Error_Message.
From-SVN: r208082
Diffstat (limited to 'gcc/ada/g-socthi.ads')
-rw-r--r-- | gcc/ada/g-socthi.ads | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/ada/g-socthi.ads b/gcc/ada/g-socthi.ads index 250f7a1..062ad18 100644 --- a/gcc/ada/g-socthi.ads +++ b/gcc/ada/g-socthi.ads @@ -35,7 +35,7 @@ -- This is the default version -with Interfaces.C.Strings; +with Interfaces.C; with GNAT.OS_Lib; with GNAT.Sockets.Thin_Common; @@ -68,8 +68,7 @@ package GNAT.Sockets.Thin is package Host_Error_Messages is - function Host_Error_Message - (H_Errno : Integer) return C.Strings.chars_ptr; + function Host_Error_Message (H_Errno : Integer) return String; -- Returns the error message string for the host error number H_Errno. -- If H_Errno is not known, returns "Unknown system error". |