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
commit177b9f5cb3c9108d9547731721efb8cd6064b753 (patch)
treeed6ea5d3289d40f79c459865f516998ee09e83c3
parenta18b2a60c586926bf51e40aae0adf65c0b232184 (diff)
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/XF86DGA.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/XF86DGA.c b/src/XF86DGA.c
index 62cf81e..c812bf4 100644
--- a/src/XF86DGA.c
+++ b/src/XF86DGA.c
@@ -19,7 +19,8 @@ Copyright (c) 1995,1996 The XFree86 Project, Inc
#define HAS_MMAP_ANON
#include <sys/types.h>
#include <sys/mman.h>
-#include <asm/page.h> /* PAGE_SIZE */
+/* kernel header doesn't work with -ansi */
+/* #include <asm/page.h> */ /* PAGE_SIZE */
#define HAS_SC_PAGESIZE /* _SC_PAGESIZE may be an enum for Linux */
#define HAS_GETPAGESIZE
#endif /* linux */