<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
On Fri, 2011-01-21 at 20:07 +0100, Cyril Brulebois wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
HAVE_LIBDRM comes from config.h, so include it first.

With CFLAGS=&quot;-Wall -Werror&quot;, the build fails with:
|   CC     vmware_drv_la-vmwaremodule.lo
| cc1: warnings being treated as errors
| vmwaremodule.c: In function &#8216;vmware_check_kernel_module&#8217;:
| vmwaremodule.c:100: error: implicit declaration of function &#8216;drmOpen&#8217;
| vmwaremodule.c:112: error: implicit declaration of function &#8216;drmClose&#8217;

Signed-off-by: Cyril Brulebois &lt;<A HREF="mailto:kibi@debian.org">kibi@debian.org</A>&gt;
---
 src/vmwaremodule.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/vmwaremodule.c b/src/vmwaremodule.c
index a7ba854..2754879 100644
--- a/src/vmwaremodule.c
+++ b/src/vmwaremodule.c
@@ -26,14 +26,14 @@
 #include &lt;xorg-server.h&gt;
 #include &lt;xf86.h&gt;
 
-#ifdef HAVE_LIBDRM
-#include &lt;xf86drm.h&gt;
-#endif
-
 #ifdef HAVE_CONFIG_H
 #include &quot;config.h&quot;
 #endif
 
+#ifdef HAVE_LIBDRM
+#include &lt;xf86drm.h&gt;
+#endif
+
 #ifndef HAVE_XORG_SERVER_1_5_0
 #include &lt;xf86_ansic.h&gt;
 #include &lt;xf86_libc.h&gt;
-- 
1.7.2.3

</PRE>
</BLOCKQUOTE>
<BR>
This is the correct order. <BR>
<BR>
Reviewed-by: <TT><FONT COLOR="#1a1a1a">Gaetan Nadon &lt;<A HREF="mailto:memsize@videotron.ca">memsize@videotron.ca</A>&gt;</FONT></TT><BR>
<BR>
I have copied the driver maintainer who will review and potentially push the patch.<BR>
<A HREF="http://www.x.org/wiki/vmware">http://www.x.org/wiki/vmware</A><BR>
<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
_______________________________________________
<A HREF="mailto:xorg-devel@lists.x.org">xorg-devel@lists.x.org</A>: X.Org development
Archives: <A HREF="http://lists.x.org/archives/xorg-devel">http://lists.x.org/archives/xorg-devel</A>
Info: <A HREF="http://lists.x.org/mailman/listinfo/xorg-devel">http://lists.x.org/mailman/listinfo/xorg-devel</A>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>