net-mgmt/nstat: don't assume timespecadd is undefined

PR:		230058
Submitted by:	asomers
This commit is contained in:
Steve Wills
2018-07-26 17:54:36 +00:00
parent 11de37c6f3
commit 580db765b2

View File

@@ -0,0 +1,10 @@
--- nstat.c.orig 2018-07-26 14:34:20 UTC
+++ nstat.c
@@ -53,6 +53,7 @@
/* why is this only defined in the kernel */
+#undef timespecadd
#define timespecadd(vvp, uvp) \
do { \
(vvp)->tv_sec += (uvp)->tv_sec; \