[PATCH] xf86-video-intel/modesetting: Missing #include in i830_xf86Crtc.c

Joshua J. Berry des at condordes.net
Mon Dec 11 08:35:31 PST 2006


Head fde52de870c84821ab457e17634c334a10cf71ab of the modesetting branch 
fails to compile with the following error:

-----
make[3]: Entering directory `/home/des/Code/xorg/xf86-video-intel/src'
... 
i830_xf86Crtc.c: In function 'xf86DefaultMode':
i830_xf86Crtc.c:146: error: 'M_T_PREFERRED' undeclared (first use in this 
function)
i830_xf86Crtc.c:146: error: (Each undeclared identifier is reported only 
once
i830_xf86Crtc.c:146: error: for each function it appears in.)
i830_xf86Crtc.c: In function 'xf86OutputHasPreferredMode':
i830_xf86Crtc.c:200: error: 'M_T_PREFERRED' undeclared (first use in this 
function)
-----

I have no idea if this is correct or not, but the following patch seems to 
fix compiling for me:

diff --git a/src/i830_xf86Crtc.c b/src/i830_xf86Crtc.c
index 3a592e5..448d4f9 100644
--- a/src/i830_xf86Crtc.c
+++ b/src/i830_xf86Crtc.c
@@ -32,6 +32,7 @@
 
 #include "xf86.h"
 #include "xf86DDC.h"
+#include "i830.h"
 #include "i830_xf86Crtc.h"
 #include "X11/extensions/render.h"
 

Please apply (or apply the right fix, anyway ;) ).  Thanks.

-- Josh

-- 
Joshua J. Berry

"I haven't lost my mind -- it's backed up on tape somewhere."
    -- /usr/games/fortune
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20061211/7ba2c063/attachment.pgp>


More information about the xorg mailing list