diff --git a/net/nfstrace/Makefile b/net/nfstrace/Makefile index 90d41cdba0ff..cf6266fc4ab2 100644 --- a/net/nfstrace/Makefile +++ b/net/nfstrace/Makefile @@ -1,22 +1,28 @@ PORTNAME= nfstrace DISTVERSION= 0.4.3.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net MAINTAINER= ehaupt@FreeBSD.org COMMENT= NFS and CIFS tracing/monitoring/capturing/analyzing tool WWW= https://github.com/epam/nfstrace LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libjson-c.so:devel/json-c USES= cmake localbase:ldflags USE_GITHUB= yes GH_ACCOUNT= epam CMAKE_ARGS+= -DJSON_INCLUDE_DIR="${LOCALBASE}/include/json-c" CFLAGS+= -Wno-deprecated-copy -Wno-format +.include + +.if ${OSVERSION} >= 1600000 +EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src_protocols_nfs_nfs__procedure.h +.endif + .include diff --git a/net/nfstrace/files/extra-patch-src_protocols_nfs_nfs__procedure.h b/net/nfstrace/files/extra-patch-src_protocols_nfs_nfs__procedure.h new file mode 100644 index 000000000000..312e2892ae50 --- /dev/null +++ b/net/nfstrace/files/extra-patch-src_protocols_nfs_nfs__procedure.h @@ -0,0 +1,12 @@ +--- src/protocols/nfs/nfs_procedure.h.orig 2017-01-31 21:48:12 UTC ++++ src/protocols/nfs/nfs_procedure.h +@@ -117,8 +117,7 @@ class NFSProcedure : public NST::API::RPCProcedure (pr + ResType* pres; + + private: +- inline static bool_t return_true(XDR*, void*, ...) { return 1; } +- inline static bool_t return_true(XDR*, ...) { return 1; } ++ inline static bool_t return_true(XDR*, void*) { return 1; } + ArgType arg; + ResType res; + };