summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/rtasm
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-10-29 14:08:13 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-10-29 14:08:13 -0600
commit09570d2e737a4c9f3f24edd78af3b897ee261733 (patch)
treee6afb511e5055399f370f08b2dbb9eb6f7513c4b /src/gallium/auxiliary/rtasm
parent1f7a323a138e6cc43b1192022b071c606a5ee6f4 (diff)
gallium: test for PIPE_OS_LINUX instead of __linux__
Diffstat (limited to 'src/gallium/auxiliary/rtasm')
-rw-r--r--src/gallium/auxiliary/rtasm/rtasm_execmem.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/rtasm/rtasm_execmem.c b/src/gallium/auxiliary/rtasm/rtasm_execmem.c
index 19087589a8..864bd4d3fe 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_execmem.c
+++ b/src/gallium/auxiliary/rtasm/rtasm_execmem.c
@@ -38,12 +38,13 @@
#include "rtasm_execmem.h"
-#if defined(__linux__)
+#if defined(PIPE_OS_LINUX)
+
/*
* Allocate a large block of memory which can hold code then dole it out
* in pieces by means of the generic memory manager code.
-*/
+ */
#include <unistd.h>
#include <sys/mman.h>
@@ -113,7 +114,7 @@ rtasm_exec_free(void *addr)
}
-#else
+#else /* PIPE_OS_LINUX */
/*
* Just use regular memory.
@@ -133,4 +134,4 @@ rtasm_exec_free(void *addr)
}
-#endif
+#endif /* PIPE_OS_LINUX */