[Ada] Fix Accept_Socket and Connect_Socket timeout support
authorDmitriy Anisimkov <anisimko@adacore.com>
Wed, 16 Sep 2020 12:33:51 +0000 (18:33 +0600)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 26 Oct 2020 08:59:08 +0000 (04:59 -0400)
commit86d774f68ee399ec3f17549aed9f2d0baeb0ea81
treef9f5817965cd82486ee946597b3fda1fe2efb0e2
parente0481cf5fcfa5c3deb21f6ebfbdf598ea3562732
[Ada] Fix Accept_Socket and Connect_Socket timeout support

gcc/ada/

* libgnat/g-socket.adb (Wait_On_Socket): Boolean parameter
For_Read changed to Event parameter of type
GNAT.Sockets.Poll.Wait_Event_Set.  Implementation is simplified
and based on call to GNAT.Sockets.Poll.Wait now.
gcc/ada/libgnat/g-socket.adb