<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">diff -ru Ice-3.5.0.orig/cpp/test/include/TestCommon.h Ice-3.5.0/cpp/test/include/TestCommon.h
--- Ice-3.5.0.orig/cpp/test/include/TestCommon.h	2013-03-11 08:19:47.000000000 -0700
+++ Ice-3.5.0/cpp/test/include/TestCommon.h	2013-03-11 22:35:25.353825217 -0700
@@ -25,6 +25,22 @@
     std::cout &lt;&lt; msg &lt;&lt; std::flush;
 }
 
+#if defined(__FreeBSD__)
+#  include &lt;sys/types.h&gt;
+#  include &lt;sys/sysctl.h&gt;
+inline bool inFreeBSDJail()
+{
+    int jailed;
+    size_t size = sizeof(jailed);
+    return (sysctlbyname("security.jail.jailed", &amp;jailed, &amp;size, NULL, 0) != -1 || jailed);
+}
+#else
+inline bool inFreeBSDJail()
+{
+    return false;
+}
+#endif
+
 void
 inline println(const std::string&amp; msg)
 {
</pre></body></html>