From a30dc3866c433907a3e70da4521edb457d874840 Mon Sep 17 00:00:00 2001 From: Chris Want Date: Wed, 22 Feb 2006 23:34:12 +0000 Subject: Some issues compiling on Irix: + the code in writemovie.c no longer compiles (since the renderer refactor). I have #if 0-ed it. + OpenGL on Irix doesn't have GL_ARB_vertex_program + mmap on Irix doesn't like MAP_ANON. + If using the MipsPro 7.3 compiler, the variable MIPS73_ISOHEADERS can be set to point to the directory with those weird C++ headers that don't have .h in the name --- intern/guardedalloc/intern/mallocn.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'intern') diff --git a/intern/guardedalloc/intern/mallocn.c b/intern/guardedalloc/intern/mallocn.c index e682f17a386..d26e39e5bcc 100644 --- a/intern/guardedalloc/intern/mallocn.c +++ b/intern/guardedalloc/intern/mallocn.c @@ -259,8 +259,13 @@ void *MEM_mapallocN(unsigned int len, const char *str) len = (len + 3 ) & ~3; /* allocate in units of 4 */ +#if defined(__sgi) + memh= mmap(0, len+sizeof(MemHead)+sizeof(MemTail), + PROT_READ|PROT_WRITE, MAP_SHARED, -1, 0); +#else memh= mmap(0, len+sizeof(MemHead)+sizeof(MemTail), PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANON, -1, 0); +#endif if(memh!=(MemHead *)-1) { make_memhead_header(memh, len, str); -- cgit v1.2.3