openbsd-ports/www/seamonkey/patches/patch-mozilla_xpcom_base_nsStackWalk_cpp
landry 7fb16329b9 Major update to seamonkey 2.0.4, now built upon mozilla-1.9.1/firefox
3.5/thunderbird 3 codebase. See for details:
http://www.seamonkey-project.org/releases/seamonkey2.0.4/
Backing up your profile before upgrading is recommended..
Update also largely based on www/firefox35 port.
Tested on i386/amd64/sparc64/powerpc by myself and on alpha by naddy@

ok naddy@
2010-04-03 09:30:14 +00:00

22 lines
811 B
Plaintext

$OpenBSD: patch-mozilla_xpcom_base_nsStackWalk_cpp,v 1.1 2010/04/03 09:30:15 landry Exp $
--- mozilla/xpcom/base/nsStackWalk.cpp.orig Sat Dec 5 02:56:52 2009
+++ mozilla/xpcom/base/nsStackWalk.cpp Sat Jan 16 16:28:38 2010
@@ -1124,7 +1124,7 @@ NS_FormatCodeAddressDetails(void *aPC, const nsCodeAdd
#define __USE_GNU
#endif
-#if defined(HAVE_LIBDL) || defined(XP_MACOSX)
+#if defined(HAVE_LIBDL) || defined(XP_MACOSX) || defined(__OpenBSD__)
#include <dlfcn.h>
#endif
@@ -1223,7 +1223,7 @@ myinit()
if (! initialized) {
#ifndef __GNUC__
void *handle;
- const char *libdem = "libdemangle.so.1";
+ const char *libdem = "libdemangle.so";
/* load libdemangle if we can and need to (only try this once) */
if ((handle = dlopen(libdem, RTLD_LAZY)) != NULL) {