diff options
-rw-r--r-- | src/xgi_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xgi_driver.c b/src/xgi_driver.c index 618fa74..e76f5e2 100644 --- a/src/xgi_driver.c +++ b/src/xgi_driver.c @@ -2800,7 +2800,7 @@ XGIPreInit(ScrnInfoPtr pScrn, int flags) FbDevExist = FALSE; if((pXGI->Chipset != PCI_CHIP_XGIXG20)&&(pXGI->Chipset != PCI_CHIP_XGIXG21)&&( pXGI->Chipset != PCI_CHIP_XGIXG27 )) { - if ((fd = open("/dev/fb", 'r')) != -1) { + if ((fd = open("/dev/fb", O_RDONLY)) != -1) { PDEBUG(ErrorF("--- open /dev/fb.... \n")); ioctl(fd, FBIOGET_FSCREENINFO, &fix); if (fix.accel == FB_ACCEL_XGI_GLAMOUR) { |