NetBSD port fixes by Ted Lemon

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@926 57a11ea4-9604-0410-9ed3-97b8803252fd
zzzoldfeatures/xacc-12-patch
Linas Vepstas 28 years ago
parent 9158305927
commit 81be528f76

@ -27,8 +27,9 @@ srcdir = @srcdir@
VPATH = @srcdir@
CC = @CC@
INCLPATH = -I.. -I./engine -I./register -I@srcdir@/../include
CFLAGS = @CFLAGS@ ${INCLPATH}
INCLPATH = -I.. -I./engine -I./register -I@srcdir@/../include -I@prefix@/include
CFLAGS = @CFLAGS@ @X_CFLAGS@ ${INCLPATH}
######################################################################
# See Makefile.common for information about these variables.

@ -112,7 +112,8 @@ GetOtherAccName (Split *split)
trans = xaccSplitGetParent (split);
numsplits = xaccTransCountSplits (trans);
if (2 < numsplits) return SPLIT_STR;
/* if (2 < numsplits) return SPLIT_STR; */
if (2 < numsplits) return "BOGUS";
s = xaccTransGetSplit (trans, 0);
if (s == split) {

@ -700,7 +700,7 @@ void
xaccAccountSetNotes (Account *acc, char *str)
{
char * tmp;
if (!acc) return;
if ((!acc) || (!str)) return;
CHECK (acc);
/* make strdup before freeing */

@ -36,7 +36,13 @@ int loglevel = 1;
* DEBUGGING MEMORY ALLOCATION STUFF *
\********************************************************************/
#if DEBUG_MEMORY
#if defined (__NetBSD__)
# define malloc_usable_size(ptr) 0
#endif
size_t core=0;
void
dfree( void *ptr )
{

@ -24,16 +24,23 @@
# These three lines are suggested defs for autoconf (see the info pages).
@SET_MAKE@
prefix = @prefix@
srcdir = @srcdir@
VPATH = @srcdir@
includedir=@includedir@
CC = @CC@
INCLPATH = -I.. -I../.. -I../engine -I../register -I@srcdir@/../../include
INCLPATH = -I.. -I../.. -I../engine -I../register -I@srcdir@/../../include \
-I$(includedir) -I$(prefix)/lib/gnome-libs/include
CFLAGS = @CFLAGS@ @X_CFLAGS@ ${INCLPATH}
LDFLAGS = @LDFLAGS@
LIBS = -lgif @LIBS@ @X_PRE_LIBS@ @X_LIBS@ $(shell gtk-config --libs) \
@X_EXTRA_LIBS@ -lgnomeui -lgnome -lgnomesupport -lgdk_imlib -ltiff -ldl
LIBS = -L$(prefix)/lib @LIBS@ @X_PRE_LIBS@ @X_LIBS@ \
$(shell gtk-config --libs) @X_EXTRA_LIBS@ -lgnomeui -lgnome \
-lgnomesupport -lintl -lgdk_imlib -ltiff
TARGET = ../../xacc.gtk.bin
STATIC = ../../xacc-static.gtk.bin

@ -29,9 +29,11 @@ INCLPATH = -I@srcdir@/../.. \
-I@srcdir@/../../include \
-I@srcdir@/../engine \
-I@srcdir@/../../lib/ComboBox-1.33 \
-I@srcdir@/../../lib/Xbae-4.6.2-linas
-I@srcdir@/../../lib/Xbae-4.6.2-linas \
-I@prefix@/include
CFLAGS := @CFLAGS@ -DCELL_WIDGETS=1 ${INCLPATH}
CFLAGS := @CFLAGS@ @X_CFLAGS@ -DCELL_WIDGETS=1 ${INCLPATH}
######################################################################
# See Makefile.common for information about these variables.

@ -96,7 +96,7 @@
}
/* nothing to resize */
#define TABLE_PRIVATE_DATA_RESIZE(table)
#define TABLE_PRIVATE_DATA_RESIZE(a,b,c,d,e)
typedef struct _Table Table;

@ -72,7 +72,7 @@
/* hack alert -- I think destroy should unmalloc colors ?? */
#define TABLE_PRIVATE_DATA_DESTROY(table)
#define TABLE_PRIVATE_DATA_RESIZE xaccMotifResizeTable
#define TABLE_PRIVATE_DATA_RESIZE(a,b,c,d,e) xaccMotifResizeTable(a,b,c,d,e)
typedef struct _Table Table;

Loading…
Cancel
Save