diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-20 10:23:29 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-20 10:23:29 +0000 |
commit | f060ec3ac5d577d1ee18d289eb3330ca162676b5 (patch) | |
tree | 574ce9131a64849db6a95cbc24418300aacf56dd /gcc/ada/socket.c | |
parent | 442049cc40ee654b6b24371b05d7ea79e2e0657c (diff) | |
download | gcc-f060ec3ac5d577d1ee18d289eb3330ca162676b5.tar.gz |
2009-04-20 Thomas Quinot <quinot@adacore.com>
* s-oscons-tmplt.c: Add support for generating a dummy version of
s-oscons.ads providing all possible constants.
* g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
* socket.c (__gnat_inet_pton): On Windows make sure we always use the
ANSI version (not the UNICODE version) of WSAStringToAddress.
2009-04-20 Pascal Obry <obry@adacore.com>
* adaint.c (__gnat_set_OWNER_ACL): properly free memory
allocated for the security descriptor and make sure all
handles are closed before leaving this procedure.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146392 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/socket.c')
-rw-r--r-- | gcc/ada/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/socket.c b/gcc/ada/socket.c index 5ddaa39d6a2..1c7de255c5c 100644 --- a/gcc/ada/socket.c +++ b/gcc/ada/socket.c @@ -422,7 +422,7 @@ __gnat_inet_pton (int af, const char *src, void *dst) { int rc; ss.ss_family = af; - rc = WSAStringToAddress (src, af, NULL, (struct sockaddr *)&ss, &sslen); + rc = WSAStringToAddressA (src, af, NULL, (struct sockaddr *)&ss, &sslen); if (rc > 0) { switch (af) { case AF_INET: |