summaryrefslogtreecommitdiff
path: root/net/openwbem/patches/patch-ae
blob: 41b25a66bb21d7d58b1fc21733cb7e89ab00f0cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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