pkgsrc/net/kphone/patches/patch-ad
rillig b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00

21 lines
648 B
Text

$NetBSD: patch-ad,v 1.3 2005/12/05 20:50:46 rillig Exp $
--- dissipate2/udpmessagesocket.cpp.orig 2005-04-18 14:04:40.000000000 +0100
+++ dissipate2/udpmessagesocket.cpp 2005-11-24 16:49:55.000000000 +0000
@@ -1,5 +1,7 @@
#include <sys/types.h>
#include <sys/socket.h>
+#include <netinet/in.h>
+#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <errno.h>
#include <string.h>
@@ -57,7 +59,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 ;
}