remove unneeded dlopen(0,...) work-around. okay todd@
This commit is contained in:
parent
e0af4b998b
commit
36f0f04374
@ -1,9 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.3 2005/04/04 22:49:50 todd Exp $
|
||||
# $OpenBSD: Makefile,v 1.4 2005/11/12 12:49:59 kurt Exp $
|
||||
|
||||
NOT_FOR_ARCHS= ${LP64_ARCHS}
|
||||
|
||||
COMMENT= "Quicken-like money and finance manager"
|
||||
DISTNAME= gnucash-1.8.11
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
CATEGORIES= gnome productivity
|
||||
MASTER_SITE_GNUCASH= http://www.gnucash.org/pub/gnucash/ \
|
||||
ftp://ftp.gnucash.org/pub/gnucash/ \
|
||||
|
@ -1,41 +0,0 @@
|
||||
$OpenBSD: patch-src_gnome-utils_dialog-utils_c,v 1.1.1.1 2005/02/24 01:47:15 todd Exp $
|
||||
--- src/gnome-utils/dialog-utils.c.orig Sat Apr 12 12:03:25 2003
|
||||
+++ src/gnome-utils/dialog-utils.c Thu Feb 17 07:05:14 2005
|
||||
@@ -22,11 +22,14 @@
|
||||
* *
|
||||
\********************************************************************/
|
||||
|
||||
+#define _GNU_SOURCE 1 /* necessary to get RTLD_DEFAULT on linux */
|
||||
+
|
||||
#include "config.h"
|
||||
|
||||
#include <glade/glade.h>
|
||||
#include <gnome.h>
|
||||
#include <gmodule.h>
|
||||
+#include <dlfcn.h>
|
||||
|
||||
#include "dialog-utils.h"
|
||||
#include "global-options.h"
|
||||
@@ -38,7 +41,6 @@
|
||||
#include "gnc-euro.h"
|
||||
#include "gnc-ui-util.h"
|
||||
|
||||
-
|
||||
/* This static indicates the debugging module that this .o belongs to. */
|
||||
static short module = MOD_GUI;
|
||||
|
||||
@@ -1123,8 +1125,12 @@ gnc_glade_autoconnect_full_func(const gc
|
||||
}
|
||||
|
||||
if (!g_module_symbol(allsymbols, handler_name, (gpointer *)p_func)) {
|
||||
- g_warning("could not find signal handler '%s'.", handler_name);
|
||||
- return;
|
||||
+ /* Fallback to dlsym -- necessary for *BSD linkers */
|
||||
+ func = dlsym(RTLD_DEFAULT, handler_name);
|
||||
+ if (func == NULL) {
|
||||
+ g_warning("ggaff: could not find signal handler '%s'.", handler_name);
|
||||
+ return;
|
||||
+ }
|
||||
}
|
||||
|
||||
if (other_object) {
|
Loading…
x
Reference in New Issue
Block a user