diff options
| author | Danilo Egea Gondolfo <danilo@FreeBSD.org> | 2018-06-26 02:28:18 +0000 |
|---|---|---|
| committer | Danilo Egea Gondolfo <danilo@FreeBSD.org> | 2018-06-26 02:28:18 +0000 |
| commit | 892b80d343ea92f11cade79d412a7ba3a0dc3ae3 (patch) | |
| tree | 238106725984f3ff185ce651011d62c081ceb38d | |
| parent | - Update to 8.6.4 (diff) | |
- Unbreak build on ARM. Use malloc instead of sbrk.
Notes
Notes:
svn path=/head/; revision=473367
| -rw-r--r-- | cad/irsim/Makefile | 3 | ||||
| -rw-r--r-- | cad/irsim/files/patch-base_mem.c | 11 |
2 files changed, 12 insertions, 2 deletions
diff --git a/cad/irsim/Makefile b/cad/irsim/Makefile index 4d8b7bd46450..1a3782dab6fa 100644 --- a/cad/irsim/Makefile +++ b/cad/irsim/Makefile @@ -3,6 +3,7 @@ PORTNAME= irsim PORTVERSION= 9.7.100 +PORTREVISION= 1 CATEGORIES= cad MASTER_SITES= http://opencircuitdesign.com/irsim/archive/ @@ -31,8 +32,6 @@ GNU_CONFIGURE= yes CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -BROKEN_aarch64= Fails to link: missing sbrk - .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MTCL} diff --git a/cad/irsim/files/patch-base_mem.c b/cad/irsim/files/patch-base_mem.c new file mode 100644 index 000000000000..23c6710ba128 --- /dev/null +++ b/cad/irsim/files/patch-base_mem.c @@ -0,0 +1,11 @@ +--- base/mem.c.orig 2018-06-25 17:36:40 UTC ++++ base/mem.c +@@ -126,7 +126,7 @@ extern unsigned sleep(); + #define PAGE_MASK ( PAGE_SIZE - 1 ) + + #define FPRINTF (void) fprintf +-#if defined(CYGWIN) || defined(__APPLE__) ++#if defined(CYGWIN) || defined(__APPLE__) || defined(__FreeBSD__) + private Pointer GetMoreCore( npages ) + int npages; + { |
