ports/net/multicat/files/patch-multicat.c
Matthias Andree 2afe3963da net/multicat: Update to 2.3, new maintainer
- pkg-descr: WWW: changed to https://
- Makefile ordering: PORTDOCS and PKG_PLIST swapped (portclippy suggestion)
- extra patch of the file "patch" successfully ignored :-)
- set MAINTAINER (was unmaintained)

PR:		241982
Submitted by:	Michael Muenz <m.muenz@gmail.com> (new maintainer)
2020-05-04 23:03:41 +00:00

19 lines
561 B
C

--- multicat.c.orig 2019-11-15 11:52:01 UTC
+++ multicat.c
@@ -280,14 +280,14 @@ static ssize_t raw_Write( const void *p_buf, size_t i_
ssize_t i_ret;
struct iovec iov[2];
- #if defined(__FreeBSD__)
+ #if defined(__FreeBSD__) || defined(__DragonFly__)
pktheader.udph.uh_ulen
#else
pktheader.udph.len
#endif
= htons(sizeof(struct udphdr) + i_len);
- #if defined(__FreeBSD__)
+ #if defined(__FreeBSD__) || defined(__DragonFly__)
pktheader.iph.ip_len = htons(sizeof(struct udprawpkt) + i_len);
#endif