From 72614fb23ac6483615b7837486b71a179ea3389b Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Sat, 29 Mar 2003 21:33:04 +0000 Subject: [PATCH] 2003-03-29 Christian Stimming * src/engine/gnc-session.c: OpenBSD fix by Todd T. Fries * src/engine/Transaction.c: OpenBSD fix by Todd T. Fries : time_t is not long everywhere. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8104 57a11ea4-9604-0410-9ed3-97b8803252fd --- AUTHORS | 1 + ChangeLog | 8 ++++++++ src/engine/Transaction.c | 2 +- src/engine/gnc-session.c | 7 ++++++- 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index 59cfb44858..5855903337 100644 --- a/AUTHORS +++ b/AUTHORS @@ -120,6 +120,7 @@ Jan-Uwe Finck for messages German translation Kevin Finn auto-decimal point, options, auto interest xfer patches Ron Forrester for gnome patches Dave Freese for leap-year fix +Todd T. Fries OpenBSD fix John Goerzen file i/o fix for 64-bit architectures Hans de Graaff XML patches Daniel Hagerty patch to balance sheet report diff --git a/ChangeLog b/ChangeLog index d85e4e6ac6..a67f95c2f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2003-03-29 Christian Stimming + + * src/engine/gnc-session.c: OpenBSD fix by Todd T. Fries + + + * src/engine/Transaction.c: OpenBSD fix by Todd T. Fries + : time_t is not long everywhere. + 2003-03-23 Christian Stimming * src/import-export/hbci/hbci-interaction.c (GNCInteractor_hide): diff --git a/src/engine/Transaction.c b/src/engine/Transaction.c index d43e15a7fd..fac9d1cc95 100644 --- a/src/engine/Transaction.c +++ b/src/engine/Transaction.c @@ -2492,7 +2492,7 @@ xaccTransSetDateInternal(Transaction *trans, int which, time_t secs, check_open(trans); PINFO ("addr=%p set %d date to %lu %li %s", - trans, which, secs, nsecs, ctime (&secs)); + trans, which, (long unsigned int)secs, nsecs, ctime (&secs)); dadate = ((which == TDATE_POSTED) ? &trans->date_posted diff --git a/src/engine/gnc-session.c b/src/engine/gnc-session.c index 80f1096dcb..49c067643c 100644 --- a/src/engine/gnc-session.c +++ b/src/engine/gnc-session.c @@ -1088,13 +1088,18 @@ xaccResolveURL (const char * pathfrag) void gnc_run_rpc_server (void) { - char * dll_err; + const char * dll_err; void * dll_handle; int (*rpc_run)(short); int ret; /* open and resolve all symbols now (we don't want mystery * failure later) */ +#ifndef RTLD_NOW +# ifdef RTLD_LAZY +# define RTLD_NOW RTLD_LAZY +# endif +#endif dll_handle = dlopen ("libgnc_rpc.so", RTLD_NOW); if (! dll_handle) {