]> git.pld-linux.org Git - packages/xorg-driver-video-xgi.git/commitdiff
- fix open() flags
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 27 Dec 2008 09:55:39 +0000 (09:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    xorg-driver-video-xgi-open.patch -> 1.1

xorg-driver-video-xgi-open.patch [new file with mode: 0644]

diff --git a/xorg-driver-video-xgi-open.patch b/xorg-driver-video-xgi-open.patch
new file mode 100644 (file)
index 0000000..583a897
--- /dev/null
@@ -0,0 +1,11 @@
+--- xf86-video-xgi-1.5.0/src/xgi_driver.c.orig 2007-08-28 00:56:34.000000000 +0200
++++ xf86-video-xgi-1.5.0/src/xgi_driver.c      2008-12-27 10:49:05.489307405 +0100
+@@ -2504,7 +2504,7 @@
+     FbDevExist = FALSE;
+     if (pXGI->Chipset != PCI_CHIP_XGIXG20) {
+-        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) {
This page took 0.076734 seconds and 4 git commands to generate.