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.
This commit is contained in:
parent
7124cfaa00
commit
75d96afcc4
|
@ -14,7 +14,12 @@
|
|||
#include "fbdevhw.h"
|
||||
#include "fbpriv.h"
|
||||
|
||||
#include "asm/page.h" /* #define for PAGE_* */
|
||||
#if 0
|
||||
/* kernel header doesn't work with -ansi */
|
||||
# include "asm/page.h" /* #define for PAGE_* */
|
||||
#else
|
||||
# define PAGE_MASK (~(getpagesize() - 1))
|
||||
#endif
|
||||
|
||||
#include "globals.h"
|
||||
#define DPMS_SERVER
|
||||
|
@ -22,6 +27,8 @@
|
|||
|
||||
#define DEBUG 0
|
||||
|
||||
#define PAGE_MASK (~(getpagesize() - 1))
|
||||
|
||||
#if DEBUG
|
||||
# define TRACE_ENTER(str) ErrorF("fbdevHW: " str " %d\n",pScrn->scrnIndex)
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue
Block a user