Commit Graph

9 Commits

Author SHA1 Message Date
Steve Lhomme
ddcc2cdcff compat: add missing errno on Winsock errors
Some of the error codes [1] correspond to errno values [2]

[1] https://docs.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2
[2] https://docs.microsoft.com/en-us/cpp/c-runtime-library/errno-constants
2022-06-28 17:24:51 +00:00
Mehdi Sabwat
2d6897fd01 compat: remove deprecated platform
This commit removes conditional code for the Nacl platform.
2021-09-16 16:46:02 +00:00
Steve Lhomme
83797ed765 compat: use proper check for the sys/uio.h availability 2018-04-12 14:21:06 +02:00
Steve Lhomme
333ed248b9 use the proper check for sys/socket.h availability 2018-04-12 13:19:23 +02:00
Etienne BRATEAU
ab0d479659 compat Properly check if NativeClient
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-07-06 17:27:58 +02:00
Dennis Hamester
246f1ab22e compat: Add custom implementation of recvmsg/sendmsg on NaCl
On Pepper 49, recvmsg and sendmsg are implemented as stubs, which always
return ENOTSUP. Proper implementations for these functions will become
available in later Pepper versions, which should make these compat
functions obsolete.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-03-31 14:53:32 +02:00
Steve Lhomme
c02a90717c compat: the official way to include WSA functions is with winsock2.h
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-02-14 22:52:41 +01:00
Denis Charmet
0ca74870c4 Use WSARecv instead of WSARecvFrom when the from field is empty
Windows will throw WSAEFAULT if WSARecvFrom is called with a NULL lpFrom and/or fromlen

Close #17163
2016-09-07 19:08:35 +02:00
Rémi Denis-Courmont
3f72fbddb7 compat: replace recvmsg() 2016-01-13 18:53:33 +02:00