[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-sparse
Subject: patch to compile on mac os x 10.3
From: "Brian R. Gaeke" <brg () dgate ! org>
Date: 2004-07-09 7:03:19
Message-ID: 20040709070318.GA30170 () sartre ! dgate ! org
[Download RAW message or body]
Hi there,
I patched sparse-2004-07-09 so that it compiles on my Mac OS X 10.3
machine. I also verified that it still compiles on Linux. (I was using
gcc 3.3.x in both instances.) If you are interested, the patch is attached.
-Brian
--
Brian R. Gaeke, brg at dgate.org -- GnuPG encrypted mail gleefully accepted
diff -ru sparse-bk/lib.c sparse-bk-macosx/lib.c
--- sparse-bk/lib.c Tue Jul 6 18:00:20 2004
+++ sparse-bk-macosx/lib.c Fri Jul 9 01:58:50 2004
@@ -83,6 +83,9 @@
};
#define CHUNK 32768
+#if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
+#define MAP_ANONYMOUS MAP_ANON
+#endif
#define blob_alloc(size) mmap(NULL, ((size)+4095) & ~4095, PROT_READ | PROT_WRITE, \
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0) #define blob_free(addr,size) munmap((addr), \
((size)+4095) & ~4095)
diff -ru sparse-bk/symbol.c sparse-bk-macosx/symbol.c
--- sparse-bk/symbol.c Sun Jun 6 18:00:23 2004
+++ sparse-bk-macosx/symbol.c Fri Jul 9 01:56:37 2004
@@ -511,6 +511,9 @@
IDENT(for); IDENT(while); IDENT(do); IDENT(goto);
IDENT(__asm__); IDENT(__asm); IDENT(asm);
+#ifdef __volatile
+#undef __volatile
+#endif
IDENT(__volatile__); IDENT(__volatile); IDENT(volatile);
IDENT(__attribute__); IDENT(__attribute);
IDENT(defined);
-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic