From ccecfeab22539d9ad1268f4eaf3383ce380b7ae0 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Sat, 24 Mar 2012 15:57:39 +0000 Subject: - Fix build with gcc 4.7 - Add support for clang PR: 165702 Submitted by: Michael Gmelin (maintainer) Feature safe: yes --- .../ice/files/patch-cpp-test-include-TestCommon.h | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 devel/ice/files/patch-cpp-test-include-TestCommon.h (limited to 'devel/ice/files/patch-cpp-test-include-TestCommon.h') diff --git a/devel/ice/files/patch-cpp-test-include-TestCommon.h b/devel/ice/files/patch-cpp-test-include-TestCommon.h new file mode 100644 index 000000000000..c703fca87fbd --- /dev/null +++ b/devel/ice/files/patch-cpp-test-include-TestCommon.h @@ -0,0 +1,25 @@ +--- cpp.orig/test/include/TestCommon.h 2011-06-15 21:43:59.000000000 +0200 ++++ cpp/test/include/TestCommon.h 2012-03-04 20:14:53.000000000 +0100 +@@ -17,6 +17,22 @@ + #include + #endif + ++#if defined(__FreeBSD__) ++# include ++# include ++inline bool inFreeBSDJail() ++{ ++ int jailed; ++ size_t size = sizeof(jailed); ++ return (sysctlbyname("security.jail.jailed", &jailed, &size, NULL, 0) != -1 || jailed); ++} ++#else ++inline bool inFreeBSDJail() ++{ ++ return false; ++} ++#endif ++ + void + inline testFailed(const char* expr, const char* file, unsigned int line) + { -- cgit v1.2.3