kphone (1:4.2-6) udpmessagesocket.diff

Summary

 dissipate2/udpmessagesocket.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

    
download this patch

Patch contents

--- kphone-4.2.orig/dissipate2/udpmessagesocket.cpp
+++ kphone-4.2/dissipate2/udpmessagesocket.cpp
@@ -1,5 +1,6 @@
 #include <sys/types.h>
 #include <sys/socket.h>
+#include <netinet/in.h>
 #include <netinet/ip.h>
 #include <errno.h>
 #include <string.h>
@@ -57,7 +58,7 @@
 	tos=IPTOS_LOWDELAY;
 #endif
 	optlen=1;
-	if(setsockopt(socketfd,SOL_IP,IP_TOS,&tos,optlen) != 0){
+	if(setsockopt(socketfd,IPPROTO_IP,IP_TOS,&tos,optlen) != 0){
 		perror("UDPMessageSocket::SetTOS");
                 return -1 ;
 	}