Fixed socket(2) call compatibility to specify also IPPROTO_UDP.
authorshort <>
Sun, 23 May 2004 19:54:48 +0000 (19:54 +0000)
committershort <>
Sun, 23 May 2004 19:54:48 +0000 (19:54 +0000)
src/network.c

index 2e755fe..545f1d1 100644 (file)
@@ -451,8 +451,8 @@ int sock;
        if (!sock_gsource_new())
                return FALSE;
 
-       if (-1==(sock=socket(AF_INET,SOCK_DGRAM,0))) {
-               g_warning("socket(AF_INET,SOCK_DGRAM): %m");
+       if (-1==(sock=socket(AF_INET,SOCK_DGRAM,IPPROTO_UDP))) {
+               g_warning("socket(AF_INET,SOCK_DGRAM,IPPROTO_UDP): %m");
                return NULL;
                }
        if (ioctl(sock,FIONBIO,&oneul)) {       /* non-blocking mode */