summaryrefslogtreecommitdiff
path: root/net-analyzer/ssmping/files/ssmping-0.9-build.patch
blob: 586819ca0dd51db8a556d28dfa75748957ea4d88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
fixup build errors/warnings

http://bugs.gentoo.org/240750

--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
 PREFIX ?= /usr/local
+CPPFLAGS += -D_GNU_SOURCE
 
 all: ssmping asmping ssmpingd mcfirst
 
--- a/ssmping.c
+++ b/ssmping.c
@@ -22,7 +22,7 @@
     uint16_t size;
     uint32_t intface;
     struct sockaddr_storage name, ucaddr, mcaddr, grpaddr;
-    size_t namelen;
+    socklen_t namelen;
 #ifdef WIN32
     WORD wVersionRequested;
     WSADATA wsaData;