Fix compile bug on some IPv4 platforms.

This commit is contained in:
jhl
2011-04-16 00:45:54 +08:00
committed by mag-
parent 1a2be8a4fb
commit 5a0e3fb95f
+3 -1
View File
@@ -424,7 +424,9 @@ int init_rtp(void) {
si.sin6_flowinfo = 0;
#else
si.sin_family = AF_INET;
si.sin_len = sizeof(si);
#ifdef SIN_LEN
si.sin_len = sizeof(si);
#endif
si.sin_addr.s_addr = htonl(INADDR_ANY);
#endif