Bug 546660 - Clean up mess around LINUX, AVMPLUS_LINUX, __linux__ (r+nnethercote) [kpalacz]
Gcc defines linux on linux, other compilers are supported to the
extent that they emulate gcc's behavior
--- a/js/src/nanojit/CodeAlloc.cpp
+++ b/js/src/nanojit/CodeAlloc.cpp
@@ -270,17 +270,18 @@ extern "C" void __clear_cache(char *BEG,
#endif
#if defined(AVMPLUS_UNIX) && defined(NANOJIT_MIPS)
#include <asm/cachectl.h>
extern "C" int cacheflush(char *addr, int nbytes, int cache);
#endif
#ifdef AVMPLUS_SPARC
-#ifdef __linux__ // bugzilla 502369
+// Note: the linux #define provided by the compiler.
+#ifdef linux // bugzilla 502369
void sync_instruction_memory(caddr_t v, u_int len)
{
caddr_t end = v + len;
caddr_t p = v;
while (p < end) {
asm("flush %0" : : "r" (p));
p += 32;
}