From: Austin Yuan Date: Wed, 4 Feb 2009 13:30:14 +0000 (-0500) Subject: Fix vainfo build issue X-Git-Tag: 20090306~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fee5a4725c739beca1f5dc4ecb8f0e1ee1e381aa;p=platform%2Fupstream%2Flibva.git Fix vainfo build issue Signed-off-by: Austin Yuan --- 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 +#include #include #include @@ -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 : "");