Commit fee5a472 authored by Austin Yuan's avatar Austin Yuan

Fix vainfo build issue

Signed-off-by: default avatarAustin Yuan <shengquan.yuan@intel.com>
parent 1cb6ba53
...@@ -27,7 +27,7 @@ bin_PROGRAMS = vainfo ...@@ -27,7 +27,7 @@ bin_PROGRAMS = vainfo
testdir = $(bindir) 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) TESTS = $(check_PROGRAMS)
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <va_x11.h> #include <X11/va_x11.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
...@@ -44,7 +44,7 @@ int main(int argc, const char* argv[]) ...@@ -44,7 +44,7 @@ int main(int argc, const char* argv[])
else else
name = argv[0]; name = argv[0];
dpy = XOpenDisplay(NULL); dpy = XOpenDisplay(":0.0");
if (NULL == dpy) if (NULL == dpy)
{ {
fprintf(stderr, "%s: Error, can't open display: '%s'\n", name, display ? display : ""); fprintf(stderr, "%s: Error, can't open display: '%s'\n", name, display ? display : "");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment