net-mgmt/nstat: don't assume timespecadd is undefined
PR: 230058 Submitted by: asomers
This commit is contained in:
10
net-mgmt/nstat/files/patch-nstat.c
Normal file
10
net-mgmt/nstat/files/patch-nstat.c
Normal 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; \
|
||||
Reference in New Issue
Block a user