Commit 795fb9bc authored by Rafaël Carré's avatar Rafaël Carré

network/udp.c net_SetCSCov(): removes warnings if UDPLITE_RECV_CSCOV and...

network/udp.c net_SetCSCov(): removes warnings if UDPLITE_RECV_CSCOV and DCCP_SOCKOPT_SEND_CSCOV are not defined
parent a9eeb553
...@@ -833,6 +833,12 @@ int __net_OpenDgram( vlc_object_t *obj, const char *psz_bind, int i_bind, ...@@ -833,6 +833,12 @@ int __net_OpenDgram( vlc_object_t *obj, const char *psz_bind, int i_bind,
*/ */
int net_SetCSCov (int fd, int sendcov, int recvcov) int net_SetCSCov (int fd, int sendcov, int recvcov)
{ {
#if !defined( UDPLITE_RECV_CSCOV ) && !defined( DCCP_SOCKOPT_SEND_CSCOV )
VLC_UNUSED(sendcov);
VLC_UNUSED(recvcov);
return VLC_EGENERIC;
#endif
int type; int type;
if (getsockopt (fd, SOL_SOCKET, SO_TYPE, if (getsockopt (fd, SOL_SOCKET, SO_TYPE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment