OSDN Git Service

Fix vainfo build issue
authorAustin Yuan <shengquan.yuan@intel.com>
Wed, 4 Feb 2009 13:30:14 +0000 (08:30 -0500)
committerAustin Yuan <shengquan.yuan@intel.com>
Wed, 4 Feb 2009 13:30:14 +0000 (08:30 -0500)
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
test/Makefile.am
test/vainfo.c

index 379813c..4c6f8f9 100644 (file)
@@ -27,7 +27,7 @@ bin_PROGRAMS = vainfo
 
 testdir = $(bindir)
 
-AM_CFLAGS = -I$(top_srcdir)/../../include/external/ -I$(top_srcdir)/src  -I$(top_srcdir)/src/x11
+AM_CFLAGS = -I$(top_srcdir)/../../include/external/ -I$(top_srcdir)/src  -I$(top_srcdir)/src/X11
 
 TESTS = $(check_PROGRAMS)
 
index f59ea89..1dde61b 100644 (file)
@@ -22,7 +22,7 @@
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-#include <va_x11.h>
+#include <X11/va_x11.h>
 
 #include <stdarg.h>
 #include <stdio.h>
@@ -44,7 +44,7 @@ int main(int argc, const char* argv[])
   else
       name = argv[0];
 
-  dpy = XOpenDisplay(NULL);
+  dpy = XOpenDisplay(":0.0");
   if (NULL == dpy)
   {
       fprintf(stderr, "%s: Error, can't open display: '%s'\n", name, display ? display : "");