freebsd-ports/devel/libgrading/files/patch-src_posix.cpp
Dmitry Marakasov 08d1bcf458 - Mark BROKEN on 9.x: doesn't build due to lacking c++11 support
- Fix build on 10.1, don't try to use missing sys/capsicum.h

Approved by:	portmgr blanket
2016-10-19 20:29:06 +00:00

14 lines
292 B
C++

--- src/posix.cpp.orig 2016-09-19 18:47:05 UTC
+++ src/posix.cpp
@@ -186,6 +186,11 @@ TestResult grading::ForkTest(TestClosure
#ifdef __FreeBSD__
+#include <sys/param.h>
+#endif
+
+#if defined(__FreeBSD__) && __FreeBSD_version >= 1001511
+
#include <sys/capsicum.h>
#include <err.h>