From fee5a4725c739beca1f5dc4ecb8f0e1ee1e381aa Mon Sep 17 00:00:00 2001 From: Austin Yuan Date: Wed, 4 Feb 2009 08:30:14 -0500 Subject: [PATCH] Fix vainfo build issue Signed-off-by: Austin Yuan --- test/Makefile.am | 2 +- test/vainfo.c | 4 ++-- 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 +#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 : ""); -- 2.7.4