diff -u bigforth-2.0.12/Makefile.in bigforth/Makefile.in --- bigforth-2.0.12/Makefile.in 2004-04-14 19:36:44.000000000 +0200 +++ bigforth/Makefile.in 2004-12-07 14:12:45.578571000 +0100 @@ -18,7 +18,7 @@ INSTDIR = $(prefix)/lib/bigforth BININSTDIR = $(prefix)/bin -CC = @CC@ +CC = @CC@ @ARCHFLAGS@ CP = cp MV = mv EXE = @EXEEXT@ Only in bigforth: Makefile.in~ Only in bigforth: autom4te.cache Only in bigforth: bigforth diff -u bigforth-2.0.12/bigforth.c bigforth/bigforth.c --- bigforth-2.0.12/bigforth.c 2004-12-05 18:32:54.000000000 +0100 +++ bigforth/bigforth.c 2004-12-07 15:13:00.503618000 +0100 @@ -109,9 +109,10 @@ #define OSFILE int int bytes=0; +static void* heapstart=(void*)0x10000000; #define available_mem(size) (size=0x01000000) -#define alloc_mem(size,heap) (heap=(int *)mmap(0, size, PROT_EXEC|PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0)) +#define alloc_mem(size,heap) (heap=(int *)mmap(heapstart, size, PROT_EXEC|PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0)); heapstart+=size; #define open_by_name(name,handle) (handle=open(name, O_RDONLY)) #define seek_to(handle,pos) ({ long _pos = pos; if(bytes!=_pos) lseek(handle, _pos, SEEK_SET); bytes=_pos; }) #define read_bytes(handle,to,size) (bytes+=read(handle, to, size)) diff -u bigforth-2.0.12/configure.in bigforth/configure.in --- bigforth-2.0.12/configure.in 2004-07-17 18:45:56.000000000 +0200 +++ bigforth/configure.in 2004-12-07 14:12:33.247638000 +0100 @@ -8,21 +8,24 @@ *win32|cygwin) EXTFLAGS="-mno-cygwin" WINDOWS="-mwindows" + ARCHFLAGS="" ;; *) EXTFLAGS="" WINDOWS="" + ARCHFLAGS="" ;; esac case "$host_cpu" in *x86_64*) - EXTFLAGS="-m32" + ARCHFLAGS="-m32" ;; esac AC_CHECK_LIB(dl,dlopen) AC_SUBST(EXTFLAGS) +AC_SUBST(ARCHFLAGS) AC_SUBST(WINDOWS) AC_OUTPUT(Makefile bigforth.cnf xbigforth.cnf) diff -u bigforth-2.0.12/png.fs bigforth/png.fs --- bigforth-2.0.12/png.fs 2004-07-26 22:51:07.000000000 +0200 +++ bigforth/png.fs 2004-12-07 15:14:28.490256000 +0100 @@ -2,7 +2,7 @@ also DOS -library libpng libpng.so.2 +library libpng libpng.so.3 legacy off @@ -28,7 +28,7 @@ THEN r> ; : init-png ( -- infostruc readstruc ) - 0" 1.0.15" user_error_ptr ['] noop dup png_create_read_struct + 0" 1.2.0" user_error_ptr ['] noop dup png_create_read_struct dup 0= abort" PNG: no read structure" info-struct dup setjmp IF dup png_destroy_read_struct