summaryrefslogtreecommitdiff
path: root/net/openwbem/patches/patch-ae
diff options
context:
space:
mode:
Diffstat (limited to 'net/openwbem/patches/patch-ae')
-rw-r--r--net/openwbem/patches/patch-ae30
1 files changed, 30 insertions, 0 deletions
diff --git a/net/openwbem/patches/patch-ae b/net/openwbem/patches/patch-ae
new file mode 100644
index 00000000000..41b25a66bb2
--- /dev/null
+++ b/net/openwbem/patches/patch-ae
@@ -0,0 +1,30 @@
+$NetBSD: patch-ae,v 1.1 2007/12/27 18:54:19 joerg Exp $
+
+--- src/common/OW_SafeLibCreate.hpp.orig 2007-12-27 16:26:28.000000000 +0000
++++ src/common/OW_SafeLibCreate.hpp
+@@ -185,7 +185,11 @@ public:
+ }
+
+ private:
++#ifdef WIN32
+ static jmp_buf theLoaderBuf;
++#else
++ static sigjmp_buf theLoaderBuf;
++#endif
+
+ // this is commented out because it won't compile. As it is, it may
+ // invoke undefined behavior if the C calling convention is different
+@@ -205,7 +209,12 @@ private:
+
+ };
+ template <typename T>
+-jmp_buf SafeLibCreate<T>::theLoaderBuf;
++#ifdef WIN32
++jmp_buf
++#else
++sigjmp_buf
++#endif
++SafeLibCreate<T>::theLoaderBuf;
+
+ } // end namespace OW_NAMESPACE
+