summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@intel.com>2009-02-04 08:30:14 -0500
committerAustin Yuan <shengquan.yuan@intel.com>2009-02-04 08:30:14 -0500
commitfee5a4725c739beca1f5dc4ecb8f0e1ee1e381aa (patch)
tree37a2967d33375b0732f9a3a7d9bddd3c8f8296da
parent1cb6ba5375d8fe7ba411fe588a48afda92f1d3b3 (diff)
downloadlibva-fee5a4725c739beca1f5dc4ecb8f0e1ee1e381aa.tar.gz
Fix vainfo build issue
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
-rw-r--r--test/Makefile.am2
-rw-r--r--test/vainfo.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index 379813c..4c6f8f9 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -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)
diff --git a/test/vainfo.c b/test/vainfo.c
index f59ea89..1dde61b 100644
--- a/test/vainfo.c
+++ b/test/vainfo.c
@@ -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 : "");