summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.de>2004-05-06 17:31:17 +0000
committerEgbert Eich <eich@suse.de>2004-05-06 17:31:17 +0000
commitfcb62987b01b7166a4b1aceb677a2a777e6ba482 (patch)
tree61e6e70bf6c55c8189b44e8c78cf384d03ff4f60
parent39c07a5fa73bcbb48d5de8985d5f2540b65e470b (diff)
downloadxorg-lib-libXaw-fcb62987b01b7166a4b1aceb677a2a777e6ba482.tar.gz
BugZilla #601: Fixing makedepend choking on floating point exception
because CHAR_BIT is defined to __CHAR_BIT__ which is a compiler intrinsic define. BugZilla #605: Fixing build on IA64 which is broken due to the inclusion of the kernel header asm/page.h. Kernel headers however don't work with -ansi. The inclusion of asm/page.h can however savely be removed as it there are plenty of other ways to determine the page size.
-rw-r--r--src/OS.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/OS.c b/src/OS.c
index 628372d..3764e3c 100644
--- a/src/OS.c
+++ b/src/OS.c
@@ -11,7 +11,8 @@
#endif
#if defined(linux)
-#include <asm/page.h> /* for PAGE_SIZE */
+/* kernel header doesn't work with -ansi */
+/* #include <asm/page.h> *//* for PAGE_SIZE */
#define HAS_GETPAGESIZE
#define HAS_SC_PAGESIZE /* _SC_PAGESIZE may be an enum for Linux */
#endif