From 4d3bc792096d7790906a4855170df006e1d99e88 Mon Sep 17 00:00:00 2001 From: Thomas Gellekum Date: Fri, 12 Oct 2001 10:40:13 +0000 Subject: [PATCH] Fix core dump in dxexec. Bump PORTREVISION. PR: 31141. --- graphics/opendx/Makefile | 1 + .../files/patch-src:exec:libdx:memory.c | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 graphics/opendx/files/patch-src:exec:libdx:memory.c diff --git a/graphics/opendx/Makefile b/graphics/opendx/Makefile index f5a5fc366e8f..d71649b3dd79 100644 --- a/graphics/opendx/Makefile +++ b/graphics/opendx/Makefile @@ -7,6 +7,7 @@ PORTNAME= opendx PORTVERSION= 4.1.3 +PORTREVISION= 1 CATEGORIES= graphics math MASTER_SITES= http://www.research.ibm.com/dx/srcDownload/srcArchive/ \ http://opendx.npaci.edu/source/ diff --git a/graphics/opendx/files/patch-src:exec:libdx:memory.c b/graphics/opendx/files/patch-src:exec:libdx:memory.c new file mode 100644 index 000000000000..d231862856e5 --- /dev/null +++ b/graphics/opendx/files/patch-src:exec:libdx:memory.c @@ -0,0 +1,22 @@ +--- src/exec/libdx/memory.c.orig Mon May 21 07:06:59 2001 ++++ src/exec/libdx/memory.c Thu Oct 11 10:15:47 2001 +@@ -1057,6 +1057,19 @@ + #define LARGE(x) ((int)x>=(int)large) + #endif + ++#ifdef freebsd ++#define initvalues ++#define SMALL_BASE 0 /* use data segment */ ++#define SMALL_GET _dxfgetmem /* expand by using DosSetMem */ ++#define LARGE_GET _dxfgetmem /* expand by using DosSetMem */ ++#define LARGE_INIT 2 MEG /* doesn't matter; consistent w/ sgi */ ++#define LARGE_INCR 2 MEG /* doesn't matter; consistent w/ sgi */ ++#define SIZE_ROUND 2 MEG /* doesn't matter; consistent w/ sgi */ ++#define MALLOC_NONE 1 /* provide malloc from global arena */ ++#define SMALL(x) ((long)x<(long)large) ++#define LARGE(x) ((long)x>=(long)large) ++#endif ++ + #ifdef cygwin + #define initvalues + #define SMALL_BASE 0 /* use data segment */