mirror of
https://github.com/mpv-player/mpv
synced 2024-12-18 12:55:16 +00:00
Use defined() syntax instead without ().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22132 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
288f3e1a13
commit
f58e52ba6e
@ -86,7 +86,7 @@ connect2Server_with_af(char *host, int port, int af,int verb) {
|
||||
return TCP_ERROR_FATAL;
|
||||
}
|
||||
|
||||
#if defined SO_RCVTIMEO && defined SO_SNDTIMEO
|
||||
#if defined(SO_RCVTIMEO) && defined(SO_SNDTIMEO)
|
||||
tv.tv_sec = 10;
|
||||
tv.tv_usec = 0;
|
||||
setsockopt(socket_server_fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv));
|
||||
|
Loading…
Reference in New Issue
Block a user