]>
Commit | Line | Data |
---|---|---|
75cee9c3 JB |
1 | Fix implicit function declarations and open() mode bug. |
2 | --- xf86-video-xgi-1.6.1/src/xgi_driver.c.orig 2015-08-18 00:57:47.000000000 +0200 | |
3 | +++ xf86-video-xgi-1.6.1/src/xgi_driver.c 2015-09-06 09:57:48.143727372 +0200 | |
4 | @@ -68,13 +68,16 @@ | |
5 | #include "mipointer.h" | |
6 | ||
7 | #include "xgi.h" | |
8 | +#include "xgi_accel.h" | |
9 | #include "xgi_regs.h" | |
10 | #include "xgi_vb.h" | |
11 | #include "xgi_dac.h" | |
12 | #include "vb_def.h" | |
13 | +#include "vb_ext.h" | |
14 | #include "xgi_driver.h" | |
15 | #include "valid_mode.h" | |
16 | #include "vb_i2c.h" | |
17 | +#include "vb_setmode.h" | |
18 | ||
19 | #define _XF86DGA_SERVER_ | |
20 | #include <X11/extensions/xf86dgaproto.h> | |
21 | @@ -2797,7 +2800,7 @@ | |
22 | FbDevExist = FALSE; | |
23 | if((pXGI->Chipset != PCI_CHIP_XGIXG20)&&(pXGI->Chipset != PCI_CHIP_XGIXG21)&&( pXGI->Chipset != PCI_CHIP_XGIXG27 )) | |
24 | { | |
25 | - if ((fd = open("/dev/fb", 'r')) != -1) { | |
26 | + if ((fd = open("/dev/fb", O_RDONLY)) != -1) { | |
27 | PDEBUG(ErrorF("--- open /dev/fb.... \n")); | |
28 | ioctl(fd, FBIOGET_FSCREENINFO, &fix); | |
29 | if (fix.accel == FB_ACCEL_XGI_GLAMOUR) { |