summaryrefslogtreecommitdiff
path: root/gcc/ada/g-socthi.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-20 09:42:48 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-20 09:42:48 +0000
commitd7a87dfa0a39e0eae352c203007e97016039bef7 (patch)
tree51e0816eea433888837b017eb0316dd39c9b83b3 /gcc/ada/g-socthi.ads
parent9929853e7d9bb7fa5631dc342fa0ba24622af164 (diff)
downloadgcc-d7a87dfa0a39e0eae352c203007e97016039bef7.tar.gz
2009-04-20 Thomas Quinot <quinot@adacore.com>
* g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads (GNAT.Sockets.Thin.C_Inet_Addr): Remove. (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library except for VMS where it is reimplemented in Ada using DECC$INET_ADDR. (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3). * debug.adb: Fix typo * gnat_rm.texi: Minor doc fix. * sem_ch7.adb, freeze.adb: Minor reformatting git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146387 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/g-socthi.ads')
-rw-r--r--gcc/ada/g-socthi.ads7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/ada/g-socthi.ads b/gcc/ada/g-socthi.ads
index 65660e3ce47..e54d59c6a57 100644
--- a/gcc/ada/g-socthi.ads
+++ b/gcc/ada/g-socthi.ads
@@ -117,8 +117,9 @@ package GNAT.Sockets.Thin is
Optval : System.Address;
Optlen : not null access C.int) return C.int;
- function C_Inet_Addr
- (Cp : C.Strings.chars_ptr) return C.int;
+ function Inet_Aton
+ (Cp : C.Strings.chars_ptr;
+ Inp : System.Address) return C.int;
function C_Ioctl
(S : C.int;
@@ -251,7 +252,7 @@ private
pragma Import (C, C_Getpeername, "getpeername");
pragma Import (C, C_Getsockname, "getsockname");
pragma Import (C, C_Getsockopt, "getsockopt");
- pragma Import (C, C_Inet_Addr, "inet_addr");
+ pragma Import (C, Inet_Aton, "inet_aton");
pragma Import (C, C_Listen, "listen");
pragma Import (C, C_Readv, "readv");
pragma Import (C, C_Select, "select");