Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorChris Want <cwant@ualberta.ca>2006-02-23 02:34:12 +0300
committerChris Want <cwant@ualberta.ca>2006-02-23 02:34:12 +0300
commita30dc3866c433907a3e70da4521edb457d874840 (patch)
tree1f88517c925109ca85f6114aa7286e8daf9a8e29 /intern
parentfc9ba4b3233c1c76f1bdf8462c0e127d86cf14d0 (diff)
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
Diffstat (limited to 'intern')
-rw-r--r--intern/guardedalloc/intern/mallocn.c5
1 files changed, 5 insertions, 0 deletions
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);