Created attachment 195476 [details] Unconditionally define a private timespecadd net/owamp assumes that if timespecadd is defined, it's identical to the two-argument version found in the FreeBSD kernel. However, the three argument version found in NetBSD and OpenBSD is actually more common. An upcoming commit to head will replace FreeBSD's version with the NetBSD version. So net/owamp shouldn't assume that if FreeBSD defines timespecadd, it's defining the 2-argument version.
Committed, thanks!
A commit references this bug: Author: pi Date: Thu Jul 26 18:17:30 UTC 2018 New revision: 475393 URL: https://svnweb.freebsd.org/changeset/ports/475393 Log: net/owamp: Unconditionally define a private timespecadd net/owamp assumes that if timespecadd is defined, it's identical to the two-argument version found in the FreeBSD kernel. However, the three argument version found in NetBSD and OpenBSD is actually more common. An upcoming commit to head will replace FreeBSD's version with the NetBSD version. So net/owamp shouldn't assume that if FreeBSD defines timespecadd, it's defining the 2-argument version. PR: 230059 Submitted by: asomers Changes: head/net/owamp/files/ head/net/owamp/files/patch-owamp_owamp.h
Thanks for fixing this so quickly. Could you also please MFH? Otherwise the quarterly branch will start failing to build on head once I make the change to src.
(asked portmgr@ for MFH approval by mail)
A commit references this bug: Author: pi Date: Mon Jul 30 08:12:24 UTC 2018 New revision: 475868 URL: https://svnweb.freebsd.org/changeset/ports/475868 Log: MFH: r475393 net/owamp: Unconditionally define a private timespecadd net/owamp assumes that if timespecadd is defined, it's identical to the two-argument version found in the FreeBSD kernel. However, the three argument version found in NetBSD and OpenBSD is actually more common. An upcoming commit to head will replace FreeBSD's version with the NetBSD version. So net/owamp shouldn't assume that if FreeBSD defines timespecadd, it's defining the 2-argument version. PR: 230059 Submitted by: asomers Approved by: portmgr (bapt) Changes: _U branches/2018Q3/ branches/2018Q3/net/owamp/files/