Mesa (gallium-0.2): gallium: test for PIPE_OS_LINUX instead of __linux__

Brian Paul brianp at kemper.freedesktop.org
Wed Oct 29 20:56:38 UTC 2008


Module: Mesa
Branch: gallium-0.2
Commit: 09570d2e737a4c9f3f24edd78af3b897ee261733
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=09570d2e737a4c9f3f24edd78af3b897ee261733

Author: Brian Paul <brian.paul at tungstengraphics.com>
Date:   Wed Oct 29 14:08:13 2008 -0600

gallium: test for PIPE_OS_LINUX instead of __linux__

---

 src/gallium/auxiliary/rtasm/rtasm_execmem.c |    9 +++++----
 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 1908758..864bd4d 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 */




More information about the mesa-commit mailing list